ESPHome & ILI9341 touchscreen

No luck.

Same behaviour. I connected 5v this time.

Interrupt pin has to be disconnected and connected again after the ESP32 starts up.

Is there something that I can set the interrupt_pin to some value on boot up that I can set the interrupt pin needs to be, to simulate disconnect and connect of interrupt pin?

Have you tried the same pins as in the yaml code I posted?

Yes… I tried the pin config from yaml config also… But got the same behaviour.

I don’t know why it works only after disconnecting and connecting the interrupt_pin. It looks like its stuck at some state and after reconnection it starts working.

While trying to figure out why my touchscreen isn’t working, I came across this thread describing which pins on the ili9341/xpt2046 are connected to which GPIO pins on an ESP32. While reviewing the thread I came across two posts that contradict each other. The first post indicates that MOSI connects to TDO while MISO connects to TDIN. The second post indicates MOSI connects to TDIN while MISO connects to TDO. Which orientation is correct?

firebass08 James
Apr '22

For future folks need a jump on the screen pins.
SCK to the TCLK
MOSI to the TDO
MISO to the TDIN

In subsequent post in the same thread was this information;

amrut
Sep '23
Just for every one here. This is how I got solved it with the help of @pepe59

ESPHome version 2023.8.2

mosi_pin is connected to SDI(MOSI) and T_DIN
miso_pin is only connected to T_DO only.
clk_pin is connected to SCK and T_CLK
Please make sure you connect the T_IRQ to the interrupt_pin. It is required for the touch to work.

I have it connected and the ili9341 display works including the xpt2046.
MOSI to the T-DIN
MISO to the T-DO

Thanks for confirming those connections.