Routines to drive a chain of APA102 Leds.

Fork of APA102 by Joel Rosiene

A library to drive arrays of APA102 leds.

Files at this revision

API Documentation at this revision

Comitter:
rosienej
Date:
Tue Apr 07 01:47:36 2015 +0000
Parent:
6:5d4edfc955f3
Commit message:
Changed the RGB order for the LED frame

Changed in this revision

APA102a.h Show annotated file Show diff for this revision Revisions of this file
diff -r 5d4edfc955f3 -r 629583c31cef APA102a.h
--- a/APA102a.h	Tue Apr 07 01:41:17 2015 +0000
+++ b/APA102a.h	Tue Apr 07 01:47:36 2015 +0000
@@ -46,7 +46,7 @@
     */
  
 unsigned int IRGB(unsigned char I,unsigned char R,unsigned char G,unsigned char B) {
-     return ((0xE0 + (0x1F&I))<<24)|((0xFF&R)<<16)|((0xFF&G)<<8)|(0xFF&B);}
+     return ((0xE0 + (0x1F&I))<<24)|((0xFF&B)<<16)|((0xFF&G)<<8)|(0xFF&R);}
      
   protected: