A simple example to drive an APA-102 LED strip.

Dependencies:   mbed APA102b Ping SLCD

Revision:
4:50ce957663ee
Parent:
3:2788a714b18e
Child:
6:27f43abd16e2
--- a/main.cpp	Tue Apr 07 13:55:22 2015 +0000
+++ b/main.cpp	Tue Apr 07 13:56:36 2015 +0000
@@ -69,8 +69,8 @@
 
     int rgb[3]; 
     unsigned char r,g,b;
-    //const int N=67;  // Number of APA-102 Elements +1
-    const int N=144;
+    const int N=66;  // Number of APA-102 Elements 
+    //const int N=144;
     int range;
     unsigned int Pixel;
     unsigned int Pixels[N];