Hello, I managed to run this display with my ESP32 DEV MODULE thanks to this library prenticedavid/MCUFRIEND_kbv: MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields (github.com). I calibrated the display:
*** COPY-PASTE from Serial Terminal:
const int XP=27,XM=15,YP=4,YM=14; //240x400 ID=0x7793
const int TS_LEFT=929,TS_RT=221,TS_TOP=992,TS_BOT=158;
PORTRAIT CALIBRATION 240 x 400
x = map(p.x, LEFT=929, RT=221, 0, 240)
y = map(p.y, TOP=992, BOT=158, 0, 400)
LANDSCAPE CALIBRATION 400 x 240
x = map(p.y, LEFT=992, RT=158, 0, 400)
y = map(p.x, TOP=221, BOT=929, 0, 240)
But no matter what, when I run button_simple sketch, I'm not able to push that buttons. I also tried touch_shield_new sketch, pushes near middle of the screed doesn't seems to be recognized. I tried 2 displays and same result. When I tested it with Arduino Uno it worked, so I'm kinda confuzed. Any help??
Post a link to the actual display that you have bought.
Post a link to the ESP32 module that you have bought.
Paste your ESP32 pin defines (if you are not using the default pins from mcufriend_shield.h )
I am fairly certain that I have the exact display. So I can test it for you.
David.
I will try it tomorrow.
From memory, the Adafruit Touchscreen.h does not work with ESP32.
You need to use Touchscreen_kbv.h
David.
@marioqqq did it work? I'm trying to do something using the exact same display and the ESP-32 DevKitC WROOM-32D but it's not working.
I don't know if it's a pinout thing or lack of experience programming on Arduino/ESP but I'm about to give up. Even the library to test the lcd isn't doing a thing.
Can you help me with this?
The pins:
#define LCD_RD 2
#define LCD_WR 4
#define LCD_RS 35
#define LCD_CS 34
#define LCD_RST 36
#define LCD_D0 12
#define LCD_D1 13
#define LCD_D2 26
#define LCD_D3 25
#define LCD_D4 17
#define LCD_D5 16
#define LCD_D6 27
#define LCD_D7 14
@david_prentice I saw a ton of threads where you explain about LCD, can you help me on this or give some material to start?
Hi, unfortunately I was not able to fix it. With Arduino Uno it worked fine, but with ESP it didn't 
Hello friend! I hope you can help me . i have brought the lcd display TfT ILI9488 With mega 2560 from CINA (OPEN-SMART ) but i tried to dowload the driver no work the display it always wight i asked the saler to send me the driver he send to me & tried no nothing work https://drive.google.com/drive/folders/1L-VX7uNNi_XIMqTHweBi56ta9o_rXPfk?usp=sharing and the link of saller can you help me pls