Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --modem=peripheral.wrap("back")
- rednet.open("back")
- print("ERROR: Sending computer isn't running startup program")
- sleep(1)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- channel, message, returnChannel = rednet.receive()
- term.clear()
- term.setCursorPos(1,1)
- print("Last Message Received: "..message)
- if message == "start" then
- redstone.setOutput("bottom",true)
- redstone.setOutput("right",true)
- sleep(1)
- elseif message == "STOP" then
- redstone.setOutput("bottom",false)
- redstone.setOutput("right",false)
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement