[question]How to use loops in lvgl, like while loops or for loops

I want to use a for() loop to create controls

Use it. You can create lvgl-elements in a loop.

yes,when i use for() loop to create elements,but the for loop does not execute

i am sorry,it’s for (i = 0;i < 3;i++ ) not for (i = 0; ;i++ ; i < 3)…