Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- id, msg = os.pullEvent("rednet_message")
- if msg == "open" then
- rednet.send(id, "open1")
- sleep(1)
- rednet.send(id, "open2")
- if msg == "close" then
- rednet.send(id, "close1")
- sleep(1)
- rednet.send(id, "close2")
- end
- end
Add Comment
Please, Sign In to add comment