Advertisement
cochise57

Untitled

Aug 28th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("ocs/apis/sensor")
  2.   p1 = peripheral.wrap("right")
  3.   p2 = peripheral.wrap("left")
  4.     prox = sensor.wrap("back")
  5.  
  6.  
  7. while true do
  8.  
  9. while p2.testBundledInput(colors.green) == false do
  10.         -- print("Wait")
  11.          p1.setBundledOutput(colors.gray)
  12.           os.sleep(1)
  13.        end
  14. p1.setBundledOutput(0)
  15.  
  16. os.sleep(0.5)
  17.  
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement