Cardwell

TransSys Ver 2.04

Jun 15th, 2016 (edited)
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Programmer:")
  4. print("1. Drep drage")
  5. print("2. Skru på laser ading")
  6. print("3. Skru av laser lading")
  7. term.setCursorPos(1,6)
  8. write("Kjør program:")
  9. pw = read()
  10.  
  11. if pw == "1" then
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. print("1")
  15. sleep(2)
  16. end
  17.  
  18. if pw == "2" then
  19. term.clear()
  20. term.setCursorPos(1,1)
  21. print("2")
  22. sleep(2)
  23. end
  24.  
Add Comment
Please, Sign In to add comment