Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- while true do
- print("Waehlen Sie die Seite, auf der das Licht angehen soll: ")
- seite = io.read()
- if seite == "rechts" then
- rs.setOutput("right",true)
- sleep (2)
- rs.setOutput("left", false)
- shell.run("clear")
- else if seite == "links" then
- rs.setOutput("left",true)
- sleep (2)
- rs.setOutput("left".false)
- shell.run("clear")
- else
- shell.run("clear")
- print("Noob! Da ist keine Lampe!")
- sleep (3)
- shell.run("clear")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement