Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ### DATOR 2
- rednet.open("top")
- message = rednet.receive()
- -- ON
- if message == "won1" then
- rs.setOutput("SIDA", true)
- rednet.send(5, "won1")
- end
- if message == "ton1" then
- rs.setOutput("SIDA", true)
- rednet.send(5, "ton1")
- end
- if message == "ron1" then
- rs.setOutput("SIDA", true)
- rednet.send(5, "ron1")
- end
- -- OFF
- if message == "woff1" then
- rs.setOutput("SIDA", false)
- rednet.send(5, "woff1")
- end
- if message == "toff1" then
- rs.setOutput("SIDA", false)
- rednet.send(5, "toff1")
- end
- if message == "roff1" then
- rs.setOutput("SIDA", false)
- rednet.send(5, "roff1")
- end
Advertisement
Add Comment
Please, Sign In to add comment