LVGL + LovyanGFX: getTouch() works, but read_cb not called

kmaehara0704
Posts: 1
Joined: Wed Jul 04, 2018 5:32 am

LVGL + LovyanGFX: getTouch() works, but read_cb not called

Postby kmaehara0704 » Sat May 17, 2025 8:15 am

Hi, I'm using ESP32-WROOM-32E with a 3.5" ST7796 SPI LCD and XPT2046 touch controller.

I'm combining LovyanGFX and LVGL v8 for display and UI.

✔️ `tft.getTouch()` works in standalone test
❌ `my_touchpad_read()` is not called under LVGL


I confirmed:
- `lv_timer_handler()` is running (loop tick prints)
- `flush_cb` is working (screen updates correctly)
- Input device was registered successfully (`Input device registered OK` printed)

I don't use the touch IRQ pin — polling only.

Any idea what could prevent LVGL from calling the input driver?

Here is the GitHub repo with full code:
👉 https://github.com/KenjiMaehara/ESP32_T ... #L103-L122



Thanks in advance for your help!

Who is online

Users browsing this forum: Applebot, meta-externalagent, PetalBot and 3 guests