I’m working on a project with an ESP32-S3-LCD-1.28 and I’m trying to create a needle sweep animation for an arc when its screen loads. I used SquareLine Studio to generate the initial code since I’m completely new to UI development. However, I couldn’t find any built-in option in the Studio for this kind of animation. I then tried implementing it directly in the Arduino code, but none of my attempts worked.
If anyone has experience with this or knows how to achieve this, I would really appreciate your help. Thanks in advance!
I tried to create a needle sweep animation using lv_arc_set_value, but I didn’t have much success. I’m not entirely sure what I’m doing wrong, but here’s what I attempted:
I placed this code in a loop, hoping to animate the arc. However, the results weren’t what I expected. Could you provide some guidance or suggest a better approach?
You can make it go from 100 to zero with an animation, so basically two different animations for going towards 100 (full) and another for going back to 0. LVGL has callbacks on the end of an animation that you could use for this.