You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#define DEFAULT_DISP_TYPE DISP_TYPE_ST7789V
#define DEFAULT_TFT_DISPLAY_WIDTH 240
#define DEFAULT_TFT_DISPLAY_HEIGHT 320
#define DISP_COLOR_BITS_24 0x66
#define DEFAULT_GAMMA_CURVE 0
#define DEFAULT_SPI_CLOCK 20000000
#define TFT_INVERT_ROTATION 0
#define TFT_INVERT_ROTATION1 1
#define TFT_RGB_BGR 0x00
#define USE_TOUCH TOUCH_TYPE_NONE
#define PIN_NUM_MISO 0 // SPI MISO
#define PIN_NUM_MOSI 19 // SPI MOSI
#define PIN_NUM_CLK 18 // SPI CLOCK pin
#define PIN_NUM_CS 5 // Display CS pin
#define PIN_NUM_DC 16 // Display command/data pin
#define PIN_NUM_TCS 0 // Touch screen CS pin
#define PIN_NUM_RST 23 // GPIO used for RESET control
#define PIN_NUM_BCKL 4 // GPIO used for backlight control
#define PIN_BCKL_ON 1 // GPIO value for backlight ON
#define PIN_BCKL_OFF 0 // GPIO value for backlight OFF
The following is needed for correct setup:
TFT_setRotation(LANDSCAPE);
TFT_setclipwin(40,52,40+240,52+135); // This maps a memory region to the actual size of
// display (240x135). From now on Coords(0,0) is upper
// left corner
TFT_invertDisplay(1); // Get colors right
TFT_fillScreen(TFT_BLACK); // Clear screen
The text was updated successfully, but these errors were encountered:
frhun
added a commit
to frhun/ESP32_TFT_library
that referenced
this issue
Mar 21, 2020
I've had good success using T-Display with this library:
https://github.com/jeremyjh/ESP32_TFT_library
Using the following config::
The following is needed for correct setup:
The text was updated successfully, but these errors were encountered: