Library for LPD8806 (and probably LPD8803/LPD8809) PWM LED driver chips, strips and pixels. For FRDM K64F

Dependents:   RadarLEDStrip

Fork of LPD8806 by Jelmer Tiete

Revision:
2:7478c1ea3fe4
Parent:
1:6ebd3ac910b6
--- a/LPD8806.cpp	Fri Dec 16 10:26:35 2011 +0000
+++ b/LPD8806.cpp	Wed Jul 13 16:34:00 2016 +0000
@@ -15,7 +15,7 @@
 
 //Define SPI pins
 //Connected to first SPI module
-SPI spi(p5, p6, p7); // mosi, miso, sclk
+SPI spi(D11, D12, D13); // mosi, miso, sclk
 //SPI spi(p11, p12, p13); // mosi, miso, sclk
 
 LPD8806::LPD8806(uint16_t n) {
@@ -50,9 +50,9 @@
 // to sign an NDA or something stupid like that, but we reverse engineered
 // this from a strip controller and it seems to work very nicely!
 void LPD8806::show(void) {
-    uint16_t i, nl3 = numLEDs * 3; // 3 bytes per LED
+    uint16_t i, nl3 = numLEDs * 3; // 3 bytes per LED 
 
-    for (i=0; i<nl3; i++ ) {
+    for (i=0; i<nl3; i++ ) { //nl3 = 96
         spi.write(pixels[i]);
     }