You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ported to LVGL9.2 from 8.4. Previously I did the portation myself, but chose to use the espressif__esp_lvgl_port.
All working very nicely.
I used to register a callback on the CPT_INT_PIN in ISR.
Now I cannot use a user defined callback, as already used by esp_lvgl_port.
Sketch
My old way of achieving it:
staticvoid IRAM_ATTR ctp_gpio_isr_handler(void *arg)
{
uint32_t gpio_num = (uint32_t)arg;
xQueueOverwriteFromISR(lcd_touch_bkl_evt_queue, &gpio_num, NULL);
}
### Other Steps to Reproduce
In another RTOS task I wait on lcd_touch_bkl_revent_queue and reset certain timers applicable to our software.
eg. We turn lcd backlight off after a certain time of inactivity to conserve power, and on again after touch.
I need a way to obtain touch events when they happen (only the fact that touch happened ie as with cpt_interrupt.)
How does the portation allow for this.
I could not find any public API to achieve this. I do not want to poll for events.
### I have checked existing issues, README.md and ESP32 Forum
- [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Unable to register custom interrupt callback for touch panel as lvgl_port_touch already does so
Unable to register custom interrupt callback for touch panel as lvgl_port_touch already does so (BSP-578)
Nov 5, 2024
@wreyford yes, if this lv_indev_add_event_cb(lvgl_touch_indev, my_custom_lcd_touch_interrupt_cb, LV_EVENT_ALL, NULL); works for you, then this would be the best recommended option.
Board
ESP32S3 16MB flash, 8 MB PSRAM, ili9488, FT5x06 custom PCB
Hardware Description
Custom PCB
IDE Name
VSCodue Insiders
Operating System
Win10
Description
I ported to LVGL9.2 from 8.4. Previously I did the portation myself, but chose to use the espressif__esp_lvgl_port.
All working very nicely.
I used to register a callback on the CPT_INT_PIN in ISR.
Now I cannot use a user defined callback, as already used by esp_lvgl_port.
Sketch
In setup code, I now tried:
and all the usual necessary code to setup, and then the portation:
The text was updated successfully, but these errors were encountered: