Micro:bit | Turn lights on and off with buttons and light sensor

Micke Kring Micke Kring ·
Micro:bit | Turn lights on and off with buttons and light sensor

In this video I show you how to turn lights on and off using either the A and B buttons, or using the Micro:bit’s built-in light sensor. Part of the course MBIT1 - Micro:bit basic course for students in grades 4–6.

00:00 - Turn a light on and off using the A and B buttons
05:33 - Blinking light
08:27 - The challenge - Get two lights to blink
10:33 - Turn a light on and off with the light sensor

Micke Kring

About the author

Micke Kring

I'm fascinated by what happens when people and technology meet. After nearly 30 years in education and development, I explore, prototype and teach AI with the same playful curiosity as when I first started out.