Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function listen()
- senderID, message, protocol = rednet.recieve()
- if message == "on" then
- redstone.setAnalogOutput("bottom", 0)
- else message == "off" then
- redstone.setAnalogOutput("bottom", 15)
- end
- end
- while true do
- listen()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement