Description
What MCU/Processor/Board and compiler are you using?
mangoPI
What LVGL version are you using?
LVGL8.2
What do you want to achieve?
sleep(5s)!
What have you tried so far?
I currently use a timer before the operation, but he seems to be in parallel and cannot delay the time before executing the operation.
/You code here/
example:disable a button, then restore it after 5 seconds
lv_obj_add_state(btn, LV_STATE_DISABLED);
lv_timer_t* sleeptimer = lv_timer_create(sleep_timer, 5000, 0);
lv_timer_set_repeat_count(sleeptimer, 1);
lv_obj_clear_state(btn, LV_STATE_DISABLED);
now this button will be restored immediately。。。。。
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.