Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- t = turtle
- m = peripheral.wrap("left")
- function run()
- while true do
- term.clear()
- print("Rednet active! Waiting for message...")
- id, message = rednet.receive()
- sleep(0.1)
- print("GOT IT!")
- startProgram(message)
- end
- end
- function startProgram(input)
- if input == "clear" then
- for i = 1,15 do
- rs.setAnalogOutput("bottom", 1)
- os.sleep(0.1)
- rs.setAnalogOutput("bottom", 0)
- os.sleep(4)
- m.dropDown(6,1)
- os.sleep(0.5)
- end
- m.suckDown(6,15)
- print ("Clear!")
- os.sleep(2)
- term.clear()
- --os.sleep(300)
- end
- -- return
- --end
- while true do
- run()
- end
Advertisement
Add Comment
Please, Sign In to add comment