Closed aliaktas closed 1 month ago
Hi,
I have solved the issue. At hardware.h file change line:42 to #define TOUCH_IRQ (gpio_num_t) GPIO_NUM_NC // GPIO_NUM_36
. For some reason setting irq pin does prevent touchpad from fire touch event.
Any solution with using IRQ pin is welcome, i think that using IRQ pin for detecting touch events is more feasible.
Moreoever, if you test above code just changelv_obj_add_event_cb(btn_counter, ui_event_Screen, LV_EVENT_ALL, NULL);
to lv_obj_add_event_cb(btn_counter, ui_event_Screen, LV_EVENT_ALL, btn_counter);
Hi,
I have been trying to build a simple touch screen project with esp-idf 5.2 and 2432s028 board.
I have intended to use Examples/ESP-IDF/LVGL9 project as starting point however the touch panel does not fire a touch event.
1) I tested the touch pad with LCD_Touch example and it is working 2) hardware.h seems to be correct for pin mapping 3) tp object is not NULL, 4) compiler does not give an error 5) changing some configuration from the menuconfig for XPT2046 but no luck
Does anybody have a chance to test with similar configuration ?