Skip to content

Commit

Permalink
Fix #406
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Nov 2, 2019
1 parent d3a1ece commit d28e435
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TFT_Drivers/ST7735_Rotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
rowstart = 0;
} else if(tabcolor == INITR_GREENTAB160x80) {
writedata(TFT_MAD_BGR);
colstart = 0;
rowstart = 0;
colstart = 26;
rowstart = 1;
} else if(tabcolor == INITR_REDTAB160x80) {
writedata(TFT_MAD_BGR);
colstart = 24;
Expand Down
13 changes: 11 additions & 2 deletions User_Setups/Setup43_ST7735.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@

#define ST7735_GREENTAB160x80


#ifdef ESP32
#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 2 // Data Command control 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

#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_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
Expand Down

0 comments on commit d28e435

Please sign in to comment.