NeoPixels with micro:bit

NeoPixels with micro:bit

per MicroBlocks

Boards
Plaques:

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

© per MicroBlocks 2019-2022.
Aquesta obra té una llicència CC-BY-SA 4.0.