Illprotectjew

Trimmy

Oct 27th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. t = turtle
  3. m = peripheral.wrap("left")
  4.  
  5.  
  6. function run()
  7.  while true do
  8.  term.clear()
  9.     print("Rednet active! Waiting for message...")
  10.  id, message = rednet.receive()
  11.  sleep(0.1)
  12.    
  13. print("GOT IT!")
  14.  startProgram(message)
  15.  
  16. end
  17. end
  18.  
  19. function startProgram(input)
  20. if input == "clear" then
  21.     for i = 1,15 do
  22.         rs.setAnalogOutput("bottom", 1)
  23.     os.sleep(0.1)
  24.     rs.setAnalogOutput("bottom", 0)
  25.         os.sleep(4)
  26.     m.dropDown(6,1)
  27.         os.sleep(0.5)
  28.     end
  29.   m.suckDown(6,15)
  30.   print ("Clear!")
  31. os.sleep(2)
  32. term.clear()
  33.  --os.sleep(300)
  34.  
  35.   end
  36.  -- return
  37. --end
  38.  
  39. while true do
  40.   run()
  41. end
Advertisement
Add Comment
Please, Sign In to add comment