Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local reactor_control_channel = 3
- local wlan = peripheral.wrap('right')
- function reactor_on()
- print('Turning reactor on!')
- wlan.transmit(reactor_control_channel,10,"REACTOR_ON")
- end
- function reactor_off()
- print('Turning reactor off!')
- wlan.transmit(reactor_control_channel,10,"REACTOR_OFF")
- end
- print('Turning reactor on!')
- reactor_on()
- sleep(50)
- print('Turning reactor off!')
- reactor_off()
- sleep(50)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement