Hi all.
I tested Arduino + ILI9341, and ESP32 + ILI9341, failed to active its touch function, what can be?
used TFT_eSPI's examples.
few pieces all work well to show, but touching. tested with TFT miso connected and disconnected both rotation(0) and rotation(1).
Thanks for help.
Adam
Looking for solutions to let ILI9341 capacitive touch function work.
Re: Looking for solutions to let ILI9341 capacitive touch function work.
ILI9341 is not a touch controller, it's just the model of the actual screen controller.
You need to find the touch controller model and use the driver designed for it. If there is not such driver, you will need to create your own based on the datasheet available for that chip.
The touch controller is usually connected using I2C, not SPI.
You need to find the touch controller model and use the driver designed for it. If there is not such driver, you will need to create your own based on the datasheet available for that chip.
The touch controller is usually connected using I2C, not SPI.
Re: Looking for solutions to let ILI9341 capacitive touch function work.
Thanks.
I should indicated that used XPT2048 controller.
which shown touch fine in many projects online, but mine just can't work on touching.
purchased from:
https://de.aliexpress.com/item/33015586 ... pt=glo2deu
I should indicated that used XPT2048 controller.
which shown touch fine in many projects online, but mine just can't work on touching.
purchased from:
https://de.aliexpress.com/item/33015586 ... pt=glo2deu
Re: Looking for solutions to let ILI9341 capacitive touch function work.
That's XPT2046, not XPT2048. It's on SPI bus.
I would just get the touch to work first and make sure it responds without using the screen at all.
And also check how it's actually wired as it may not use the default pins on your ESP.
I would just get the touch to work first and make sure it responds without using the screen at all.
And also check how it's actually wired as it may not use the default pins on your ESP.
Re: Looking for solutions to let ILI9341 capacitive touch function work.
Thank you nochkin.
Last edited by lladam on Sat Jun 24, 2023 8:33 pm, edited 1 time in total.
Re: Looking for solutions to let ILI9341 capacitive touch function work.
You need to test your touch controller, not SPIFFS. The SPIFFS is a filesystem which does not do anything with the touch controller.
Just create a simple code which uses SPI and communicates with your XPT2046 using some simple commands to make sure XPT responds according to the datasheet.
Make sure you pick the correct MISO/MOSI/CLK/CS pins.
Just create a simple code which uses SPI and communicates with your XPT2046 using some simple commands to make sure XPT responds according to the datasheet.
Make sure you pick the correct MISO/MOSI/CLK/CS pins.
Who is online
Users browsing this forum: No registered users and 109 guests