A simple example to drive an APA-102 LED strip.
Dependencies: mbed APA102b Ping SLCD
Revision 4:50ce957663ee, committed 2015-04-07
- Comitter:
- rosienej
- Date:
- Tue Apr 07 13:56:36 2015 +0000
- Parent:
- 3:2788a714b18e
- Child:
- 5:0b6842abebac
- Commit message:
- adjusted for 66 LEDS
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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];