Advertisement
Ranger15

eng on off

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