Light Sensor Lesson
Last updated
Last updated
Step 1: Program microbit to send two different blink light signals, based on the "atmosphere" around the microbit.
Not only can the programmable LED's display light at different levels, some of the can also detect ambient light around them
Program a basic light meter that will measure the current light level and display a number to represent how much light is detected.
TIP: The 1st time you hit the B button 0 should be displayed. The first button first actually activates the light level
Test your Skills: Extend your program so that if the light level is less than 100 the microbit scrolls "S O S"
For more information: This lesson was based directly on a project found at https://makecode.microbit.org/reference/input/light-level