The “Code” section of this site contains libraries of example code that support the creative computing projects featured on this site, tutorials for creating programs in Makecode, links to Scratch projects, and more.
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.
LEDs change colors every button press
Beginner
LEDs indicate when certain numbers of button presses
Beginner
The buttons make the LEDs bright and dim
Beginner
Each button press turns on a random light
Beginner
A random number between 0-10 is shown on the LEDs
Beginner
Each Button press lights up another light
Beginner
LEDs appear to be moving at different rates
Beginner
LEDs grow brighter and dimmer at different rates
Intermediate
Random LEDs turn on and off with color change on
Advanced
See the color change as a stress indicator
Beginner
Use neopixels as a bar graph to show light sensed by micro:bit
Intermediate
Check the direction of your micro:bit with a rainbow dot
Intermediate
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.
LEDs change colors every button press
Beginner
LEDs indicate when certain numbers of button presses
Beginner
The buttons make the LEDs bright and dim
Beginner
Each button press turns on a random light
Beginner
A random number between 0-10 is shown on the LEDs
Beginner
Each Button press lights up another light
Beginner
LEDs appear to be moving at different rates
Beginner
LEDs grow brighter and dimmer at different rates
Intermediate
Random LEDs turn on and off with color change on
Advanced
See the color change as a stress indicator
Beginner
Use neopixels as a bar graph to show light sensed by micro:bit
Intermediate
Check the direction of your micro:bit with a rainbow dot
Intermediate
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.
LEDs change colors every button press
Beginner
LEDs indicate when certain numbers of button presses
Beginner
The buttons make the LEDs bright and dim
Beginner
Each button press turns on a random light
Beginner
A random number between 0-10 is shown on the LEDs
Beginner
Each Button press lights up another light
Beginner
LEDs appear to be moving at different rates
Beginner
LEDs grow brighter and dimmer at different rates
Intermediate
Random LEDs turn on and off with color change on
Advanced
See the color change as a stress indicator
Beginner
Use neopixels as a bar graph to show light sensed by micro:bit
Intermediate
Check the direction of your micro:bit with a rainbow dot
Intermediate