[SOLVED] Waveshare 3.5inch Touch LCD Shield w/ ESP32

Hi all!

I have this screen:

https://www.waveshare.com/product/arduino/shields/lcd-shields/3.5inch-tft-touch-shield.htm

which I am trying to connect w this ESP32:

I've tried to use TFT_eSPI library, with the 'Setup11_RPi_touch_ILI9486.h', and i wired the screen based on the instructions

TFT_MISO to ESP32 pin 19
TFT_MOSI to ESP32 pin 23
TFT_SCLK to ESP32 pin 18
TFT_CS    to ESP32 pin 15
TFT_DC    to ESP32 pin 2
TFT_RST   to ESP32 pin 4
TOUCH_CS to ESP32 pin 22

I've also run Read User Setup sketch:

TFT_eSPI ver = 2.3.56
Processor    = ESP32
Frequency    = 240MHz
Transactions = Yes
Interface    = SPI
Display driver = 9486
Display width  = 320
Display height = 480

MOSI    = GPIO 23
MISO    = GPIO 19
SCK     = GPIO 18
TFT_CS   = GPIO 15
TFT_DC   = GPIO 2
TFT_RST  = GPIO 4
TOUCH_CS = GPIO 22

Font GLCD   loaded
Font 2      loaded
Font 4      loaded
Font 6      loaded
Font 7      loaded
Font 8      loaded
Smooth font enabled

Display SPI frequency = 20.00
Touch SPI frequency   = 2.50

LCD_BL (backlight) and VCC are connected to Vin (which gives me 4.54V) and i also connected both GND of the screen.

The screen lights up but remains white, with no response.

I am using Arduino IDE.

What am I doing wrong?
Maybe TFT_eSPI isn't the right library for this particular screen? BTW I am already using this screen on a Mega w Waveshare_ILI9486 and Adafruit_GFX but I don't have a clue on how to make it work with the ESP32.

Thanks and best regards,
Ted

Setup11_RPi_touch_ILI9486.h (1.34 KB)

User_Setup.h (15.1 KB)

This forum is awesome!!! :slight_smile: :slight_smile:

My mistake, I posted while I should've searched more!! I found the solution in this post:

https://forum.arduino.cc/?topic=642185#msg4345122

I had my 3x2 SPI header on the ICSP setting! As soon as I closed the switches, my display started to work flawlessly !!!

Maybe TFT_eSPI isn't the right library for this particular screen? BTW I am already using this screen on a Mega w Waveshare_ILI9486 and Adafruit_GFX but I don't have a clue on how to make it work with the ESP32.

Thanks and best regards,
Ted

It works on ESP32 as well, pretty much the same way as on a Mega. I wrote what is now in the Waveshare_ILI9486 library, I'm using it right now with a WEMOS (UNO form factor) ESP32 board. Looks like you found the underlying problem already though.

This topic was automatically closed after 120 days. New replies are no longer allowed.