Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inS = "right"
- local otS = "left"
- local udS = "back"
- h = io.open("counter", "w")
- function Pulse(nColors)
- rs.setBundledOutput(otS, nColors)
- sleep(0.2)
- rs.setBundledOutput(otS, 0)
- end
- h:write("2")
- h:close()
- while true do
- if rs.getInput(udS) == true then
- shell.run("1floor-drv")
- else
- Pulse(colors.yellow)
- sleep(0.2)
- shell.run("1floor-drv")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement