Describe the bug LVGL V8.1 - lv_scr_load_anim works perfectly for the most part, but it can on ocation cause LVGL to freeze, which in the end makes the MCU reboot (crash). It happens most likely because the object that's being deleted is...
The main issue is that the call toscr_load_anim_startis never done for the first screen. To Reproduce lv_obj_t*screen1=lv_obj_create(NULL,NULL);lv_obj_t*screen2=lv_obj_create(NULL,NULL);// add widgets to both screenslv_scr_load_anim(screen1,LV_SCR_LOAD_ANIM_FADE_ON,500,0, ...
staticvoidanim_progress_load(void* obj,int32_tv){lv_bar_set_start_value(obj, v, LV_ANIM_ON);lv_bar_set_value(obj,20+ v, LV_ANIM_ON); } 这些值在 0~80 范围内等速改变,持续时间 1.5 秒,无延时,对应的代码为: lv_anim_set_exec_cb(&anim, anim_progress_load);lv_anim_set_values(&...
When loading a new screen by lv_scr_load_anim() and enabling auto-delete previous screen by setting last parameter to "true", the variable of old screen still points to previous memory address even if the used memory is freed, when loading back to the old screen, lv_obj_is_va...
label.set_text("Button")# Load the screenlv.scr_load(scr) Creating an instance of a struct symbolstyle = lv.style_t(lv.style_plain) symbolstyle would be an instance oflv_style_tinitialized to the same value oflv_style_plain Setting a field in a struct ...
//Create main screen obj lv_obj_t * scr = lv_obj_create(NULL, NULL); lv_scr_load(scr); lv_obj_set_style(scr, &style); //Create a simple label label = lv_label_create(lv_scr_act(), NULL); lv_obj_set_style(label, &style); lv_obj_align(label, lv_scr_act(), LV_...
static void track_load(uint32_t id); static void stop_start_anim_timer_cb(lv_timer_t * t); static void spectrum_end_cb(lv_anim_t * a); static void album_fade_anim_cb(void * var, int32_t v); static int32_t get_cos(int32_t deg, int32_t a); ...
scr = lv.obj() btn = lv.button(scr) btn.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0) label = lv.label(btn) label.set_text("Button") # Load the screen lv.scr_load(scr) Creating an instance of a struct symbolstyle = lv.style_t(lv.style_plain) symbolstyle would be an ins...
LVGL Version: tag 8.3.6 (my esp-idf version cannot compile tag 8.3.7) Platform: ESP32 Description: It is very strange that when I use lv_scr_load_anim(scr, LV_SCR_LOAD_ANIM_FADE_ON, 400, 0, true); to load the screen with a time of animat...
scr = lv.screen_active() scr.clean() myfont_cn = lv.font_load("S:%s/font/font-PHT-cn-20.bin" % script_path) myfont_cn = lv.binfont_create("S:%s/font/font-PHT-cn-20.bin" % script_path) label1 = lv.label(scr) label1.set_style_text_font(myfont_cn, 0) # set the font...