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("4")
- h:close()
- while true do
- if rs.getInput(udS) == true then
- shell.run("3floor-drv")
- else
- Pulse(colors.yellow)
- sleep(0.2)
- shell.run("3floor-drv")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement