CheeseTown

Untitled

May 30th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from microbit import *
  2. import radio
  3.  
  4. radio.on()
  5. radio.config(channel = 42)
  6. radio.config(power=7)
  7.  
  8. while True:
  9. light_level = pin0.read_analog() / 10
  10. message = "3, {}".format(light_level)
  11. radio.send(message)
  12. sleep(1000)
Advertisement
Add Comment
Please, Sign In to add comment