Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom") end
- while true do
- event, id, text = os.pullEvent()
- if event == "rednet_message" then
- if id == 125 then -- adapter l'id en fonction de celui de l'ordinateur qui envoie les messages
- if text == "true" then
- rs.setOutput("left",false)
- rs.setOutput("right",false)
- elseif text == "false" then
- rs.setOutput("left",true)
- rs.setOutput("right",true)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement