Steps to install TFT_eSPI library in Arduino IDE, and prepare custom setup file. To make ESP32 (in Arduino framework) display on 0.96" 80x160 IPS Display with ST7735 SPI Driver.
ESP32 board used is NodeMCU ESP-32S with ESP32-WROOM-32 module:
0.96" 80x160 IPS Display with ST7735 SPI Driver:
In Arduino IDE, install TFT_eSPI library.
From the TFT_eSPI GitHub page, we know that 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.
Copy the selected setup file to "TFT_eSPI_Setups" folder:
You custom setup file. No need to change in our case. Just connect ESP32 board to ST7735 display board match with the your custom setup file.
Edit the User_Setup_Select.h file to point to the custom setup file.
Then you can load examples of TFT_eSPI to see the result.
Updated@2021-01-06, after library updated.
You see, TFT_eSPI/User_Setup_Select.h changed back to original.
TFT_eSPI_Setups/Setup43_ST7735_ESP32_80x160.h still here.
You simply needed to edit the User_Setup_Select.h file to point to your custom setup file.