Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --> www.youtube.com/watch?v=t_yk7IjiKOY <--
- -- Leuchtturm (Sequencer) - v.0.3 by ©redled72 12/2012
- local inp = "top" -- ON/Off Switch
- local sens = "bottom" -- Night Sensor
- local p = 1.0 -- OnTime pro Schritt (seconds)
- rotate = {"left", "back", "right", "front"}
- while true do
- while rs.getInput(inp) == true and rs.getInput(sens) == true do
- for i = 1, #rotate, 1 do
- rs.setOutput(rotate[i], true)
- sleep(p)
- rs.setOutput(rotate[i], false)
- end
- end
- for i = 1, #rotate, 1 do
- rs.setOutput(rotate[i], false)
- end
- sleep(0.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement