Advertisement
Guest User

run.lua

a guest
Oct 10th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2. term.getSize()
  3.  
  4. for i=1,15 do
  5. mon.clearLine()
  6. mon.setCursorPos(1,1)
  7. mon.write(i)
  8. rs.setAnalogOutput("left", true)
  9. mon.write("Set 1 on")
  10. mon.setCursorPos(1,4)
  11. os.sleep(800)
  12. rs.setAnalogOutput("right", true)
  13. mon.clear()
  14. mon.clearLine()
  15. mon.write("2 is on")
  16. mon.setCursorPos(1,1)
  17. mon.write("Set 1 off")
  18. rs.setAnalogOutput("left", false)
  19. mon.setCursorPos(1,1)
  20. mon.clear()
  21. mon.clearLine()
  22. mon.write("Set 2 on")
  23. rs.setAnalogOutput("left", false)
  24. os.sleep(800)
  25. mon.setCursorPos(3,3)
  26. mon.clear()
  27.  
  28. mon.setCursorPos(1,6)
  29. mon.clearLine()
  30. mon.write(i)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement