What You Should See
When the micro:bit runs the program it will take a single reading from the light sensor and use that
as a calibration value of the “normal” state of the room. When you place your hand over the light
sensor or turn the lights off, the LED will turn on. If you turn the lights back on or uncover the light
sensor, the LED will turn off.
Troubleshooting
LED Remains Dark
You may have been leaning over the light sensor when the code started. Make sure the light sensor
is reading the normal light in the room at startup. Try resetting the micro:bit.
Still Not Quite Working
Double-check your wiring of the signal pin; sometimes you miss a breadboard connection by a row.
Experiment 4: Driving an RGB LED
Introduction
You know what’s even more fun than a blinking LED? Changing colors with one LED. In this circuit,
you’ll learn how to use an RGB LED to create unique color combinations. Depending on how bright
each diode is, nearly any color is possible!