Description
I try to see if I can migrate my project to v9.1 from v8.3 how ever the lv_event_send has changed quite a lot, and the documentation page is not reflecting the change.
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
v9.1
What do you want to achieve?
send event
What have you tried so far?
The code block(s) should be formatted like:
lv_event_t e;
lv_memzero(&e, sizeof(e));
e.code = LV_EVENT_DRAW_MAIN_BEGIN;
e.user_data = &arc_dsc;
e.current_target = obj;
e.original_target = obj;
lv_event_send((lv_event_list_t *)obj, &e, true);
lv_draw_arc(layer, &arc_dsc);
e.code = LV_EVENT_DRAW_MAIN_END;
lv_event_send((lv_event_list_t *)obj, &e, false);
This code generates an exception in lv_event_send it seems you cannot cast obj to lv_event_list_t
How to use lv_event_send correctly?