Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- rednet.open("left")
- ID, msg, distance = rednet.receive()
- if msg == "L" then
- rs.setOutput("right", false)
- else if msg == "B" then
- rs.setOutput("right", false)
- else if msg == "2" then
- rs.setOutput("right", true)
- else if msg == "3" then
- rs.setOutput("right", false)
- else if msg == "4" then
- rs.setOutput("right", false)
- else if msg == "5" then
- rs.setOutput("right", false)
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement