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