I have a 1.54" IPS 240x240 TFT display. Please see the attached images. I use a 8266 D1 mini and my wiring is:
SCL --- D5
SDA --- D7
RES --- D2
DC --- D3
but this probably is wrong (got it from the net).
The code I use to test is the example program of Adafruit, ST7789 Library -> graphicstest. The changes I made to the source are that I use the following ST7789 lines instead of the ST7735 lines:
// For 1.14", 1.3", 1.54", and 2.0" TFT with ST7789:
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
and
// OR use this initializer (uncomment) if using a 1.3" or 1.54" 240x240 TFT:
tft.init(240, 240); // Init ST7789 240x240
What am I doing wrong? I cannot figure out and hope that someone can help.