

The Rainbow LED Christmas Tree with 6 code-able LEDs can help you to decorate a beautiful Christmas night.
Hardware Connect
- Connect the black crocodile clip line to the GND port of the micro:bit, the other side of the black crocodile clip line to the G port of the christmas tree rainbow LED.
- Connect the red crocodile clip line to the 3V port of the micro:bit, the other side of the red crocodile clip line to the V port of the christmas tree rainbow LED.
- Connect the yellow crocodile clip line to the 0 port of the micro:bit, the other side of the yellow crocodile clip line to the S port of the christmas tree rainbow LED.

Software
Step 1
- i) Click makecode https://makecode.microbit.org/#
- ii) Click on "New Project" and set a new Project.
- iii) Click on "Advanced" for more code blocks and click the Extensions at the bottom of the column.
- iv) Serch "neopixel" and add neopixel as a codebase.
Step 2
- i) Snap "set strip to neopixel at pin with leds as" from neopixel into the on start. Set pin to P1 with 6 LEDs in RGB pattern.
Step 3
- i) Snap the strip rotate block from the neopixel under the forever. Set the rotate pixels to 1 and set the LEDs change its colour one by one.
- ii) Then, snap a strip show block for colourful light.
Result
