User Manual
5 6
Diculty Level
Part List
Description
1. Control the Light
Project 1 :  Control the Light
In this demo, you will learn how to 
use the 2 buttons on the micro:bit to 
turn the LED on and o.
1x Grove - Red LED 
1x Grove Shield for micro:bit
1x micro:bit
1
2
3
Steps
2. Add an input block for on button A is pressed, 
and add a pin block digital write pin 0 to 1.
4. Click Download to transfer your code in your 
micro:bit!
5. Press button A and button B to see if the code 
works as expected.
Add to this demo! Have button A turn the light on when pressed, and the off 
when pressed again! you. 
3. Add an input block for on button B is pressed, 
and add a pin block digital write pin 0 to 0.
3. Hardware connection: Connect the Grove – Red 
LED to P0 port of Grove Shield for Micro:bit.
1
1
2
2
3
2
1
P0/P14










