I connect ESP32-DevKitC and Display board follow the default setting of TFT_eSPI library.
TFT_MISO 19 TFT_MOSI 23 TFT_SCLK 18 TFT_CS 15 TFT_DC 2 TFT_RST 4
I found the Fritzing parts here:
ESP32S-HiLetgo Dev Boad with Pinout Template
2.2 320x240 TFT ILI9341.fzpz (it should be logically same as the 2.8" display I use)
Setup Library in Arduino IDE:
Menu > Sketch > Include Library > Manager Libraries...
Search and install TFT_eSPI
Then have to edit User_Setup.h to fix your circuit.
- Confirm ILI9341_DRIVER is defined
- comment the original define of:
TFT_CS, TFT_DC and TFT_RST.
- un-comment the pin define under "For ESP32 Dev board (only tested with ILI9341 display)"
TFT_MISO, TFT_MOSI 23, TFT_SCLK, TFT_CS, TFT_DC and TFT_RST.
Then, you can try any example under TFT_eSPI.
Using TFT_eSPI, if you load a new copy of TFT_eSPI then it will over-write your setups if they are kept within the TFT_eSPI folder. It's suggested to create a new folder in your Arduino library folder called "TFT_eSPI_Setups". You then place your custom setup.h files in there. After an upgrade simply edit the User_Setup_Select.h file to point to your custom setup file.
~ ESP32 + 1.3 inch 240x240 IPS LCD (ST7789 SPI interface), using TFT_eSPI library