from microbit import *
while True:
brightness = display.read_light_level()
display.show(str(brightness))
sleep(1000)
Copyright ⓒ TECH79 All right reserved