Adafruit ST7735 Library

Dependents:   Adafruit_TFT_Shieldv1_graphicstest Adafruit_TFT_Shieldv1_rotationtest Adafruit_TFT_Shieldv1_shieldtest Solar_Powered_Smart_Camera ... more

Fork of Adafruit_ST7735 by Andrew Lindsay

Files at this revision

API Documentation at this revision

Comitter:
justinkim
Date:
Thu Jul 30 22:55:47 2015 +0000
Parent:
5:156b180d2eda
Commit message:
bug fix

Changed in this revision

Adafruit_ST7735.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 156b180d2eda -r 7d45da201480 Adafruit_ST7735.cpp
--- a/Adafruit_ST7735.cpp	Thu Jul 30 10:47:25 2015 +0000
+++ b/Adafruit_ST7735.cpp	Thu Jul 30 22:55:47 2015 +0000
@@ -411,7 +411,7 @@
 #define MADCTL_MX  0x40
 #define MADCTL_MV  0x20
 #define MADCTL_ML  0x10
-#define MADCTL_RGB 0x08
+#define MADCTL_RGB 0x00
 #define MADCTL_MH  0x04
 
 void Adafruit_ST7735::setRotation(uint8_t m)
@@ -546,7 +546,7 @@
     return(1);
 }
 
-#define RGB(b,g,r)  (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue
+#define RGB(r,g,b)  (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue
 #define TFT_DEBUG
 
 int Adafruit_ST7735::DrawBitmapFile(const char *Name_BMP)