In this project we are going to program a strip of 30 LEDs to light up different ways. We will connect our Microbits to them and use the microbits to send the instructions to the LED strip!
To get started create a new Microbit project.
To access the blocks we need to program the LED strip, you need to add the neopixel extension to your project.
To add an extension follow these steps:
To be able to interact and program the LED strip we will need a variable that stores the strip.
Add the following code to your project. We set the value to be 30 as there are 30 LEDs on the strip.
Next let's program the strip to show a rainbow of colours, when your microbit turns on.
Add the show rainbow block to your project.