ST7796S 4.0" TFT Touch Display and Wemos D1 Mini

Hi Everyone,

I have played a fair amount with displays and arduinos but this is my first adventure with a D1 Mini, a display and the arduino IDE.

So I am trying to connect this display (https://www.amazon.ca/4-0in-4-0inch-Display-Module-Board/dp/B083F1NP2Z) to a standard D1 mini and program it through the Arduino IDE.

I have done what I believe to be the connections (essentially MOSI -> D7, MISO -> D6, SCK -> D5, CS -> D8) and got the board loaded up in the board manager but when I get an example sketch loaded up, all it tells me via the serial port is ...

Read TFT ID failed, ID should be 0x09341, but read ID = 0xFFFFFF

I see the sketch example uses TFTv2.h and SPI.h Is this correct with this display?

I realize this readout might be telling me the 9341 driver when I am using a 7796 driver.

Has anyone used this display with a D1 Mini before and could advise or perhaps someone has general advice?

Thanks in advance.

Your D1 Mini has an ESP8266.

Please install Bodmer's TFT_eSPI library. Choose one of the ready made User Setups. Run all of the library examples i.e. with the example wiring.

If you have a problem, quote which example and which Setup by their names. Many people have similar hardware. So they can replicate your project and walk you through, step by step.

When this all goes 100% you can write a custom User Setup file to suit custom wiring.

David.