I added TFT_eSPI libraries and in User_Setup.h, i am using #define ST7789_DRIVER.
I connected the pins as below: #define TFT_MOSI 1 // Automatically assigned with ESP8266 if not defined #define TFT_SCLK 2 // Automatically assigned with ESP8266 if not defined
#define TFT_CS 3 // Chip select control pin D8 #define TFT_DC 4 // Data Command control pin
//#define TFT_RST 5 // Reset pin (could connect to NodeMCU RST, see next line) #define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
From Arduino IDE, I am trying TFT_eSPI example Color_Test (under Test and diagnostics) but unable to display anything on lcd.