Description
So, i have a screen with a text with LV_LABEL_LONG_SCROLL_CIRCULAR and an image, but, when i try to update the image, the code freezes, it happens with sort of types of constant rendering. If i change the long mode to one that doesn’t ‘moves’ or the screen isn’t active, it will update the image perfectly.
What MCU/Processor/Board and compiler are you using?
RP2040
What LVGL version are you using?
8.3.6
What do you want to achieve?
A way to update objects in a active sreen the has rendering witout crashing
What have you tried so far?
Tried to hide the object, change the mode before updating and set it back, invalidate the screen, delete and redraw the it.
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
Setup an screen with an image and a text with LV_LABEL_LONG_SCROLL_CIRCULAR, and then when the screen is active, update the image, i do it like this:
my_img_dsc.header.always_zero = 0;
my_img_dsc.data = data;
my_img_dsc.data_size = dataSize;
my_img_dsc.header.w = width;
my_img_dsc.header.h = height;
my_img_dsc.header.cf = LV_IMG_CF_RAW;
lv_img_set_src(ui_Image1, &my_img_dsc_music);
“”“remember to declare my_img_dsc”