Update for WROVER to address #232

The library supported 240x240 ST7789 displays only which require an 80
pixel offset in rotation 2 and 3
The library now also supports the 240x320 display which has a different
RGB colour order.
This commit is contained in:
Bodmer committed 2018-11-06 00:41:14 +00:00
1 parent 8d29c396e3
commit cbc2e66dfd
7 files changed
+112 -45

No files matched your search

+17 -9
View File
@@ -7,28 +7,36 @@
writedata(TFT_MAD_RGB);
_width = _init_width;
_height = _init_height;
#ifdef CGRAM_OFFSET
colstart = 0;
rowstart = 0;
#endif
break;
case 1: // Landscape (Portrait + 90)
writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_RGB);
_width = _init_height;
_height = _init_width;
colstart = 0;
rowstart = 0;
break;
#ifdef CGRAM_OFFSET
colstart = 0;
rowstart = 0;
#endif
break;
case 2: // Inverter portrait
writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_RGB);
_width = _init_width;
_height = _init_height;
colstart = 0;
rowstart = 80;
break;
#ifdef CGRAM_OFFSET
colstart = 0;
rowstart = 80;
#endif
break;
case 3: // Inverted landscape
writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_RGB);
_width = _init_height;
_height = _init_width;
colstart = 80;
rowstart = 0;
break;
#ifdef CGRAM_OFFSET
colstart = 80;
rowstart = 0;
#endif
break;
}