Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- modem.open(55000)
- while true do
- event, s, f, rf, msg = os.pullEvent("modem_message")
- if msg == "POWER" then
- redstone.setOutput("left",true)
- print(""..msg)
- modem.transmit(56000, 1, "ON")
- end
- if msg == "STOP" then
- redstone.setOutput("left",false)
- print(""..msg)
- modem.transmit(56000, 1, "OFF")
- end
- end
Add Comment
Please, Sign In to add comment