NeoPixel LED chain using high speed SPI

NeoPixel LED chain using high speed SPI

Hello World

Import programNeoPixel-DemoBuffer

Demo of NeoPixels using buffer/array of pixels method.

Library

Import libraryPixelArray

Control an array or chain of NeoPixel-compatible RGB LEDs. "NeoPixel" is Adafruit's name for WS2812- and WS2811-based addressable RGB LEDs. This library should work with any WS2811- or WS2812-based devices. Both the 400kHz and 800kHz protocols are supported. Most example code uses bit-banging to generate the timed signal precisely. This library uses an SPI peripheral instead. The main advantage of this is that the chip can service interrupts and the like without disrupting the signal (as long as the interrupts don't take _too_ long). The main disadvantage is that it requires the use of an SPI peripheral.

Datasheet

http://www.world-semi.com/uploads/soft/130222/1-130222154S6.pdf

Notes

Notebook page with greater detail: http://developer.mbed.org/users/vnessie/notebook/neopixel-led-chain-using-high-speed-spi/


You need to log in to post a discussion