Description
I have an area that contains 6 objects. The object consists of text and a picture.
How can I make an infinite objects list?
What MCU/Processor/Board and compiler are you using?
ESP32S3
What LVGL version are you using?
8.3
What do you want to achieve?
Can I make an infinite scroll list for this objects, like in roller object?
What have you tried so far?
I am using scroll function to switch between the objects. When I reach the last element, go back to the first element. Infinite scroll using only for “char” type.
Code to reproduce
The code block(s) should be formatted like:
if (rot_y) {
uint32_t child_cnt = lv_obj_get_child_cnt(cont);
uint32_t new_index = (current_index + child_cnt + rot_y) % child_cnt;
if (new_index != current_index) {
current_index = new_index;
highlight_box(cont, current_index);
lv_obj_t *child = lv_obj_get_child(cont, current_index);
ESP_LOGI(TAG, "ci = %d", (int)(child!=NULL));
lv_obj_scroll_to_view(child, LV_ANIM_OFF);
}
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.