Commit d28e4357 authored by Bodmer's avatar Bodmer

Fix #406

parent d3a1eced
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
rowstart = 0; rowstart = 0;
} else if(tabcolor == INITR_GREENTAB160x80) { } else if(tabcolor == INITR_GREENTAB160x80) {
writedata(TFT_MAD_BGR); writedata(TFT_MAD_BGR);
colstart = 0; colstart = 26;
rowstart = 0; rowstart = 1;
} else if(tabcolor == INITR_REDTAB160x80) { } else if(tabcolor == INITR_REDTAB160x80) {
writedata(TFT_MAD_BGR); writedata(TFT_MAD_BGR);
colstart = 24; colstart = 24;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define ST7735_GREENTAB160x80 #define ST7735_GREENTAB160x80
#ifdef ESP32
#define TFT_MISO 19 #define TFT_MISO 19
#define TFT_MOSI 23 #define TFT_MOSI 23
#define TFT_SCLK 18 #define TFT_SCLK 18
...@@ -19,7 +19,16 @@ ...@@ -19,7 +19,16 @@
#define TFT_DC 2 // Data Command control pin #define TFT_DC 2 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to RST pin) #define TFT_RST 4 // Reset pin (could connect to RST pin)
//#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
#else
// Display GND to NodeMCU pin GND (0V)
// Display VCC to NodeMCU 5V or 3.3V
// Display SCK to NodeMCU pin D5
// Display SDI/MOSI to NodeMCU pin D7
// Display BLK to NodeMCU pin VIN
#define TFT_CS PIN_D8 // Chip select control pin D8
#define TFT_DC PIN_D3 // Data Command control pin
#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
#endif
#define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment