Open ddprog opened 1 week ago
Hello @ddprog, we haven't got example for this feature, but it is implemented in last version of LVGL port component: https://components.espressif.com/components/espressif/esp_lvgl_port/ I can recommend to use this component.
If you don't want to use it, here are some recommendations You can see inside the component. The important think is set this mode: https://github.com/espressif/esp-bsp/blob/8d403e718188a25811e869fdafe613b36dd09007/components/esp_lvgl_port/src/lvgl9/esp_lvgl_port_touch.c#L63 And then call read in own task here: https://github.com/espressif/esp-bsp/blob/8d403e718188a25811e869fdafe613b36dd09007/components/esp_lvgl_port/src/lvgl9/esp_lvgl_port.c#L231
Board
ESP32-8048S043C (ESP32-S3-WROOM1-N16R8V)
Hardware Description
RGB 565 Display 800*480 Touch GT911
IDE Name
VS-Code with ESP-IDF Plugin
Operating System
Windows 10
Description
An example is required to understand how to work with touchscreen interrupts. I want to stop polling the touch in LVGL and resume it when interrupted. But I don’t quite understand how to do this. I give an example of code on how I initialize the touchscreen and turn off its polling timer. It's not clear whether the callback function is suitable for my case...
Sketch
Other Steps to Reproduce
No response
I have checked existing issues, README.md and ESP32 Forum