Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from microbit import *
- import radio
- radio.on()
- radio.config(channel = 42)
- radio.config(power=7)
- while True:
- light_level = pin0.read_analog() / 10
- message = "3, {}".format(light_level)
- radio.send(message)
- sleep(1000)
Add Comment
Please, Sign In to add comment