Routines to drive a chain of APA102 Leds.
Fork of APA102a by
Diff: APA102a.h
- Revision:
- 7:629583c31cef
- Parent:
- 4:2afea45fce8f
--- 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: