Description
How to set spinner time/speed, arc length and direction after spinner is created (v8)?
In v7.11 were some setters like:
lv_spinner_set_spin_time(preload, time_ms),
lv_spinner_set_dir(preload, LV_SPINNER_DIR_FORWARD/BACKWARD)
What MCU/Processor/Board and compiler are you using?
ESP32
What LVGL version are you using?
8.3
What do you want to achieve?
Set spinner params like speed, direction , arc lenght etc. at run time.
What have you tried so far?
looked at lv_spinner.c
1 Like
I am experiencing the same issue as the OP and found that the lv_spinner.h and lv_spinner.c are not present in the src tree for 8.3.11
I simply want to tie the rotation of the spinner to incoming data connection from an I2C connection.
What MCU/Processor/Board and compiler are you using?
ESP32-S3 Via MATouch 2.1" touchscreen
What LVGL version are you using?
8.3 due to compatibility with Squareline Studio and Arduino IDE
I am utilizing Platform IO IDE rather than the Arduino IDE
What do you want to achieve?
Set spinner speed at run time.
What have you tried so far?
Review docs for multiple versions of LVGL (7.11, 8.1, 9.3)
Reviewed the github repos and attempted to port the missing lv_spinner.h and lv_spinner.c, and lv_spinner_private.h
I have tried using the functions for arc with my spinner object, and the code compiled, but it did nothing for the spinner.
I verified this by specifying opposing values for the creation of the spinner, and then attempting to alter the speed of rotation (zero mS, 1000mS, 0 degrees, 360 degrees).
I am a novice and updating 8.3 to include the missing header and c files and supporting code is a larger undertaking than I feel comfortable with, and upgrading LVGL is a downstream/future undertaking.
I am away from my machine ATM and can be more specific about the exact syntax when I return to it.
At this point I would accept a work around or explanation of how to implement arc appropriately.
Thank You
KWB