Description
Is there any way to speed up the roller speed? I have 60 items, one per minute and it takes a few goes to get to the right position…
What MCU/Processor/Board and compiler are you using?
Simulator and Pi Zero
What LVGL version are you using?
8.1
What do you want to achieve?
As description
Review
https://docs.lvgl.io/8.1/widgets/core/roller.html
and the forum
Code to reproduce
lv_obj_t * minute = lv_roller_create(cont);
lv_roller_set_options(minute,
"00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n"
"10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n"
"20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n"
"30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n"
"40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n"
"50\n51\n52\n53\n54\n55\n56\n57\n58\n59"
,
LV_ROLLER_MODE_INFINITE
);
lv_roller_set_visible_row_count(minute, 5);
lv_obj_set_width(minute, 100);
lv_obj_align_to(minute, lbl_mm, LV_ALIGN_BOTTOM_MID, 0, 225);
lv_obj_add_event_cb(minute, cb_calendar_leavingTimeMM, LV_EVENT_ALL, userData);
lv_obj_set_style_bg_color(minute, lv_color_hex(MAIN_BG_COLOUR), LV_PART_MAIN);
lv_obj_set_style_bg_color(minute, lv_color_hex(0x01a2b1), LV_PART_SELECTED);
lv_obj_set_style_border_color(minute, MAIN_BORDER_COLOUR, LV_PART_MAIN);```
## Screenshot and/or video
N/A