Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-idf driver #8

Open
jas39 opened this issue Sep 27, 2019 · 0 comments
Open

esp-idf driver #8

jas39 opened this issue Sep 27, 2019 · 0 comments

Comments

@jas39
Copy link

jas39 commented Sep 27, 2019

I've had good success using T-Display with this library:
https://github.com/jeremyjh/ESP32_TFT_library

Using the following config::

#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

frhun added a commit to frhun/ESP32_TFT_library that referenced this issue Mar 21, 2020
Adds the TTGO T-Display to the Kconfig system.
Changes taken from:
Xinyuan-LilyGO/TTGO-T-Display#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant