NeoPixels with micro:bit

NeoPixels with micro:bit

por MicroBlocks

Boards
Placas:

micro:bit

Component/s
Componentes:

NeoPíxeles

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

© por MicroBlocks 2019-2022.
Este trabajo tiene una licencia CC-BY-SA 4.0.