Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.15 KB

README.md

File metadata and controls

21 lines (15 loc) · 1.15 KB

SimpleNeoPixelDemo

A demonstration showing how easy it can be to drive WS2812 NeoPixels.

The code sends bits and bytes directly to the LED strip without allocating memory for them, which allows to control hundreds of pixels with e.g. a small ATtiny85. The Adafruit NeoPixel library allocates 4 bytes per LED, and an ATtiny85 can only control a bit more than 50 pixels.

So why use the Adafruit NeoPixel library at all? There are good reasons for both.

  • Use SimpleNeoPixel if you want to control loads of pixel and your code is fast, and you are not afraid of manually adjusting some timings in the library, if required.
  • Use Adafruit NeoPixel as an out-of-the-box solution to control as many pixels as fit into the microcontroller’s dynamic memory, without worrying about low-level performance.

Fast means less than 6 µs per pixel. This allows for some arithmetic operations, but a sine is already far too slow.

More in-depth info at: NeoPixels Revealed: How to (not need to) generate precisely timed signals