View difference between Paste ID: y1A36Cpy and 30EAN2EZ
SHOW: | | - or go back to the newest paste.
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)