Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open( "back" )
- local state = false
- rs.setOutput( "top", state )
- while true do
- id, msg, dis = rednet.receive()
- if msg == "on" then state = true
- elseif msg == "off" then state = false end
- rs.setOutput( "top", state )
- rednet.send( id, "Reactor Success" )
- end
Advertisement
Add Comment
Please, Sign In to add comment