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.
This library depends on http://mbed.org/users/Sissors/code/BurstSPI/, and supports whatever that library supports. Currently, this is:
- Nucleo L152RE
PixelArray has been tested on LPC1768, 11U24 and 1114. Adding support for another platform is as simple as adding BurstSPI support for it.
Revision 5:47802e75974e, committed 2014-09-08
- Mon Sep 08 09:28:08 2014 +0000
- Commit message:
- Update BurstSPI to include LPC11U24 and LPC1114 support.
Changed in this revision
|BurstSPI.lib||Show annotated file Show diff for this revision Revisions of this file|
--- a/BurstSPI.lib Wed Aug 20 19:57:54 2014 +0000 +++ b/BurstSPI.lib Mon Sep 08 09:28:08 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Sissors/code/BurstSPI/#b862ffb6c5e2 +http://mbed.org/users/Sissors/code/BurstSPI/#97d75b6d5028