Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This program listens for broadcast sent by pocket computer
- while true do
- rednet.open("right")
- senderId, message, protocol = rednet.receive("home")
- print(message)
- if message == "open" then
- redstone.setOutput("back", true)
- os.sleep(1)
- redstone.setOutput("back", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement