This is a semi-structured compilation of example programs to support learners of all ages to explore programming multicolor lights (neopixels) with MakeCode and the BBC micro:bit. Learners can use, modify, and remix beginner, intermediate, and advanced example projects to become familiar with the capabilities of programmable lights.
Materials list and connection instructions
Code set progressions with links to the code cards
Blinking Random Colors
LEDs change colors every buttton press
Beginner
Counter Indicator
LEDs indicate when certain numbers of button presses
Beginner
Dimmer Switch
The buttons make the LEDs bright and dim
Beginner
Jumping Light
Each button press turns on a random light
Beginner
Color Scale
A random number between 0-10 is shown on the LEDs
Beginner
Color Gradient Graph
Each button press lights up another light in the strip
Beginner
Running Lights
LEDs appear to be moving at different rates
Beginner
Pulsing Lights
The LEDs grow brighter then dimmer at different rates
Intermediate
Twinkling Lights
Random LEDs turn on and off with a color change on
Advanced
Stress Level Indicator
Keep track of your stress by using button presses and see the color change as an indicator of your stress level
Beginner
Light Bar Graph
Use the neopixels as a bar graph to tell you the amount of light neong sensed by the micro:bit
Intermediate
Rainbow Compass
Check the direction of your micro:bit with a rainbow dot
Intermediate