Circulor scroll of text

Hello,

I want to scroll the text in circular fashion but I am getting this error “error: ‘LV_LABEL_LONG_SROLL_CIRC’ undeclared”, i dont know why, can anyone please give me any solution of this error. ?
Thanks in advance.

Thanks,
Rajesh

Are you including lvgl/lvgl.h? A code sample would be useful.

Yes i am including the header file #include lvgl/lvgl.h"

static lv_style_t style;
lv_style_copy(&style, &lv_style_plain);
style.text.color = LV_COLOR_RED ;
style.text.font = &lv_font_dejavu_20;
label3 = lv_label_create(lv_scr_act(), NULL);
lv_label_set_long_mode(label3,LV_LABEL_LONG_SROLL_CIRC) /Circular scroll/
lv_obj_set_width(label3, 200);
lv_label_set_style(label3, &style);
lv_label_set_static_text(label3, buff);

But getting same error like undefined LV_LABEL_LONG_SROLL_CIRC. Can you please suggest on this topic.

Thanks,
Rajesh

Do you see LV_LABEL_LONG_SROLL_CIRC in lv_objx/lv_label.h?

Hi kisvegabor,

i did not find LV_LABEL_LONG_SROLL_CIRC in lv_objx/lv_label.h file.
Can you please suggest that how to get this .?Thank you in advance .

Thanks,
Rajesh

What version of LittlevGL are you using? Does LV_LABEL_LONG_ROLL_CIRC work?

I am using v5.3 now.It did not worked for this LV_LABEL_LONG_ROLL_CIRC.
Please give me any suggestion on this .

Thanks,
Rajesh

I checked and it appears that this mode wasn’t present in 5.3. You’ll have to upgrade to 6.0 or newer if you want to use it.

Sure i will upgrade my littlevgl version.Thank you.

Thanks,
Rajesh