Added new display module GREENTAB2 (3.3v compact blue board, 8 pin no SD card)

Revision:
3:5cd5edbf5b72
Parent:
0:99ee879ef5a9
Child:
4:2123ea52a4d9
--- a/Adafruit_ST7735.h	Mon Mar 03 22:13:53 2014 +0000
+++ b/Adafruit_ST7735.h	Sun Nov 22 11:26:10 2015 +0000
@@ -25,11 +25,22 @@
 #define boolean bool
 
 // some flags for initR() :(
+// some flags for initR() :(
 #define INITR_GREENTAB 0x0
 #define INITR_REDTAB   0x1
+#define INITR_BLACKTAB   0x2
+
+#define INITR_18GREENTAB    INITR_GREENTAB
+#define INITR_18REDTAB      INITR_REDTAB
+#define INITR_18BLACKTAB    INITR_BLACKTAB
+#define INITR_144GREENTAB   0x1
 
 #define ST7735_TFTWIDTH  128
-#define ST7735_TFTHEIGHT 160
+// for 1.44" display
+#define ST7735_TFTHEIGHT_144 128
+// for 1.8" display
+#define ST7735_TFTHEIGHT_18  160
+#define ST7735_TFTHEIGHT  160
 
 #define ST7735_NOP     0x00
 #define ST7735_SWRESET 0x01
@@ -84,7 +95,7 @@
 #define ST7735_GREEN   0x07E0
 #define ST7735_CYAN    0x07FF
 #define ST7735_MAGENTA 0xF81F
-#define ST7735_YELLOW  0xFFE0  
+#define ST7735_YELLOW  0xFFE0
 #define ST7735_WHITE   0xFFFF