Advertisement
infiniteblock

Untitled

Dec 30th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. while true do
  2. local reactor_control_channel = 3
  3. local wlan = peripheral.wrap('right')
  4. function reactor_on()
  5. print('Turning reactor on!')
  6. wlan.transmit(reactor_control_channel,10,"REACTOR_ON")
  7. end
  8.  
  9. function reactor_off()
  10. print('Turning reactor off!')
  11. wlan.transmit(reactor_control_channel,10,"REACTOR_OFF")
  12. end
  13. print('Turning reactor on!')
  14. reactor_on()
  15. sleep(50)
  16. print('Turning reactor off!')
  17. reactor_off()
  18. sleep(50)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement