adafruit / Adafruit-ST7735-Library

This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
https://learn.adafruit.com/1-8-tft-display
550 stars 305 forks source link

Support of TTGO T-Display #109

Closed Avamander closed 4 years ago

Avamander commented 4 years ago

Just wanted to mention that the library nicely works with the TTGO T-Display ESP32 module with this config:

#define TFT_MOSI 19
#define TFT_SCLK 18
#define TFT_CS 5
#define TFT_DC 16
#define TFT_RST 23
#define TFT_BL 4

and

Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
tft.init(135, 240);           // Init ST7789 240x135

And in order to turn on backlight, set TFT_BL to HIGH.

Other tutorials suggested using other libraries and other code, but Adafruit's library seems to work better.

Maybe some documentation could also mention it's usable on the ESP32?

ladyada commented 4 years ago

sounds great! thanks for the report :)