Advertisement
Guest User

Licht

a guest
Oct 20th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. shell.run("clear")
  2. while true do
  3. print("Waehlen Sie die Seite, auf der das Licht angehen soll: ")
  4. seite = io.read()
  5. if seite == "rechts" then
  6. rs.setOutput("right",true)
  7. sleep (2)
  8. rs.setOutput("left", false)
  9. shell.run("clear")
  10. else if seite == "links" then
  11. rs.setOutput("left",true)
  12. sleep (2)
  13. rs.setOutput("left".false)
  14. shell.run("clear")
  15. else
  16. shell.run("clear")
  17. print("Noob! Da ist keine Lampe!")
  18. sleep (3)
  19. shell.run("clear")
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement