Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- term.clear()
- term.setCursorPos(1,1)
- print("House Automation - Lights")
- print("Waiting for command from control")
- while true do
- local scrap, message = rednet.receive()
- if message == "lightsOn" then
- rs.setOutput("front",true)
- elseif message == "lightsOff" then
- rs.setOutput("front",false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement