Use this library: TFT_eSPI
Use this file in the header: User_Setup.h
You should only have these lines enabled within that file:
#define ST7735_DRIVER // Define additional parameters below for this display
And these other lines:
// ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP32 SETUP ######
// For ESP32 Dev board (only tested with ILI9341 display)
//TFTLCDCyg ST7735 touch: https://es.aliexpress.com/item/4000274111524.html?spm=a2g0s.9042311.0.0.1eb963c0r4yylp DOIT ESP32 DEVKIT
// The hardware SPI can be mapped to any pins
// # 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)