from microbit import *
while True:
level = display.read_light_level()
if level > 30:
display.set_pixel(2,2, 9)
else:
display.set_pixel(2,2, 0)
Copyright ⓒ TECH79 All right reserved