NeoPixels with micro:bit

NeoPixels with micro:bit

by MicroBlocks

Boards
Boards:

micro:bit

Component/s
Components:

NeoPixels

NeoPixels - micro:bit

New to MicroBlocks? See Get Started to.

Connect the micro:bit to MicroBlocks and add the NeoPixel library.

Connect a NeoPixel strip using alligator clips or an extension board.

Start with an attach LED NeoPixel strip to pin block. Input both the number of NeoPixels on your strip and the pin to which the strip is connected.

Initialize the NeoPixel strip

Attach a set NeoPixels block to your script and click on it. Your NeoPixels should light up!

Set all NeoPixels to Green

Change the color by selecting the green circles and customizing them.

Set NeoPixel Colors

To make it look like the rainbow is moving, rotate the NeoPixels by one forever after the program has started.

Moving Rainbow

CC-BY-SA

© by MicroBlocks 2019-2022.
This work is licensed under a CC-BY-SA 4.0 license.