Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while true do
- sendid, message = os.pullEvent()
- if sendid == 23 do
- if message == "light_on" do
- rs.setOutput("back", true)
- rednet.send(sendid,"on true")
- end
- if message == "light_off" do
- rs.setOutput("back", false)
- rednet.send(sendid,"off true")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement