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