jeremyjh / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
47 stars 23 forks source link

Touch function not working #5

Closed eddeyonline closed 3 years ago

eddeyonline commented 4 years ago

Hello, I love what you've done with the library! The graphics are working great on my ESP32 Dev Kit V1 connected to an Ebay ILI9341 320x240 LCD with XPT2046 touch controller. However, the touch demo doesn't seem to be working at all. I know the hardware functions because it works perfectly with littlevgl/lv_port_esp32 I've wired as follows: Breakout --> ESP32 VCC - 3v GND - GND CS - 5 RESET - 4 DC - 26 SDI(MOSI) - 23 SCK - 18 LED - VIN SD0(MISO) - 19 T_CLK - 18 T_CS - 25 T_DIN - 23 T_DO - 19 T_IRQ - NOT CONNECTED

Note that MISO, MOSI and CLK lines are shared between the display and the touchscreen, however the CS lines are different. When the touch screen was functioning with LittleVGL the touch interupt pin was in use, however there don't seem to be any instructions to use this pin with the ESP32_TFT_Library. Any advice on getting the touchscreen to function would be much appreciated! Thanks in advance, Philip

krzysiekzk commented 4 years ago

Hello, I have the same problem, I run this library on the LCD 480x320 and LCD works great but touch dores not respond. In demo on LCD appears "Touch to draw" but dores not respond to touch. Did you solve your problem?

eddeyonline commented 4 years ago

No, I'm afraid I didn't solve it. I switched to the lvgl port, which has its own issues but at least has working touch. https://github.com/lvgl/lv_port_esp32

On Thu, 28 May 2020, 02:14 krzysiekzk, notifications@github.com wrote:

Hello, I have the same problem, I run this library on the LCD 480x320 and LCD works great but touch dores not respond. In demo on LCD appears "Touch to draw" but dores not respond to touch. Did you solve your problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeremyjh/ESP32_TFT_library/issues/5#issuecomment-634774195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO2H6Z57PHFYLBJEOM4CCC3RTU35ZANCNFSM4LYVX76A .

jeremyjh commented 4 years ago

Sorry I'd like to help but I do not have a touch controller to test with.

jeremyjh commented 3 years ago

Closing as I'm no longer maintaining this library.