blocks / nano-neopixel-stick

Rainbow on a NeoPixel stick

An Arduino Nano drives an 8-pixel NeoPixel stick through a 470 ohm resistor on DIN. The sketch lights a rainbow.

on Nano (CH340 clone)4 parts1 test

orbe add nano-neopixel-stick

Loading the Block

An Arduino Nano drives an 8-pixel NeoPixel stick through a 470 ohm resistor on DIN. The sketch lights a rainbow.

How it works

The sketch calls strip.rainbow() on an 8-pixel stick wired to D6, then show(). A 470 ohm resistor sits between D6 and DIN. Each pixel keeps its own colour.

Check it with orbe check scene.jsonc and run its tests with orbe test.

Parts in this circuit

License and files(MIT OR Apache-2.0) AND LGPL-2.1-or-later AND LGPL-3.0-or-later