Hi,
My Code:
buttonSetAddress = lv_btn_create(lv_scr_act());
lv_obj_add_event_cb(buttonSetAddress, btnSetAddressClicked, LV_EVENT_RELEASED, NULL);
static void btnSetAddressClicked(lv_event_t *event)
{
some code....
}
I press and hold the button.
I see it constantly generated LV_EVENT_RELEASED.
Expected Behavior - Single event LV_EVENT_PRESSED.
Am I wrong somewhere?