Advertisement
Guest User

startup

a guest
May 6th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. rednet.open("top")
  2. mon = peripheral.wrap("bottom")
  3. while true do
  4. event,id,text = os.pullEvent()
  5.  
  6. if (text == "11") then
  7. mon.setCursorPos(1,3)
  8. mon.write("prochain train dans")
  9. sleep(1)
  10. if (text == "10") then
  11. mon.setCursorPos(1,3)
  12. mon.write("prochain train dans")
  13. mon.setCursorPos(1,4)
  14. mon.write("13 sec")
  15. sleep(1)
  16. mon.setCursorPos(1,4)
  17. mon.write("12 sec")
  18. sleep(1)
  19. mon.setCursorPos(1,4)
  20. mon.write("11 sec")
  21. sleep(1)
  22. mon.setCursorPos(1,4)
  23. mon.write("10 sec")
  24. sleep(1)
  25. mon.setCursorPos(1,4)
  26. mon.write("9 sec")
  27. sleep(1)
  28. mon.setCursorPos(1,4)
  29. mon.write("8 sec")
  30. sleep(1)
  31. mon.setCursorPos(1,4)
  32. mon.write("7 sec")
  33. sleep(1)
  34. mon.setCursorPos(1,4)
  35. mon.write("6 sec")
  36.  
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement