Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("back")
- modem.open(14111)
- local r = true
- while r do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- term.clear()
- term.setCursorPos(1, 1)
- print(message)
- if message==true then
- rs.setOutput("left", false)
- rs.setOutput("right", true)
- elseif message==false then
- rs.setOutput("right", false)
- rs.setOutput("left", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement