Library for LPD8806 (and probably LPD8803/LPD8809) PWM LED driver chips, strips and pixels. Standard connected to 1st hardware SPI module. Data -> p5 and Clock -> p7 use a fixed sized buffer rather than malloc - if we use malloc rtos is unhappy...
Fork of LPD8806 by
Diff: LPD8806.h
- Revision:
- 2:5d654eba3240
- Parent:
- 1:6ebd3ac910b6
diff -r 6ebd3ac910b6 -r 5d654eba3240 LPD8806.h --- a/LPD8806.h Fri Dec 16 10:26:35 2011 +0000 +++ b/LPD8806.h Fri May 30 03:37:16 2014 +0000 @@ -20,6 +20,8 @@ public: LPD8806(uint16_t n); + int + pixels_ok(void); void begin(void), show(void), @@ -33,7 +35,7 @@ private: uint8_t - *pixels; // Holds LED color values + pixels[32 * 3]; // Holds LED color values uint16_t numLEDs; // Number of RGB LEDs in strand