Adafruit Led Matrix 64x32 Lib

Dependents:   Adafruit-64x32-PWM-Demo

Files at this revision

API Documentation at this revision

Comitter:
davidr99
Date:
Tue Oct 24 03:11:30 2017 +0000
Parent:
1:99abd7449a45
Commit message:
Fixed mess up with 5/6/5 colors

Changed in this revision

LedMatrix.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LedMatrix.cpp	Tue Oct 24 02:59:55 2017 +0000
+++ b/LedMatrix.cpp	Tue Oct 24 03:11:30 2017 +0000
@@ -125,8 +125,8 @@
 {
     int r, g, b;
     
-    r =  (c >> 10) & 0x1F;        // RRRRRgggggbbbbb
-    g = (c >>  5) & 0x1F; // rrrrrGGGGGbbbbb
+    r =  (c >> 11) & 0x1F;        // RRRRRgggggbbbbb
+    g = (c >>  6) & 0x1F; // rrrrrGGGGGbbbbb
     b = c & 0x1F; // rrrrrgggggBBBBB
      
     for(int p=0;p<PLANES;p++)