Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pulseBack()
- rs.setOutput("back", true)
- sleep(0.5)
- rs.setOutput("back", false)
- end
- function pulseLeft()
- rs.setOutput("left", true)
- sleep(0.5)
- rs.setOutput("left", false)
- end
- function pulseRight()
- rs.setOutput("right", true)
- sleep(0.5)
- rs.setOutput("right", false)
- end
- while true do
- while not rs.getInput("front") do
- pulseLeft()
- sleep(3)
- pulseLeft()
- pulseBack()
- pulseRight()
- sleep(3)
- end
- sleep(1) -- just to keep main loop from running crazy fast when timer off
- end
Advertisement
Add Comment
Please, Sign In to add comment