[How to] How to draw lv_arc by start_angle = 0 with end_angle= 360?


When set start angle = 0 and end angle = 360.
lv_arc can’t draw as full 360 arc.
It seems draw as 0 arc.

What MCU/Processor/Board and compiler are you using?


What do you want to achieve?

When set start angle = 0 and end angle 360,
lv_arc can display full 360 arc.

What have you tried so far?

Code to reproduce

Screenshot and/or video

Hi, you can modify lv_draw_mask_angle_init(…) like this

1 Like

What exactly did you modify?

1 Like

Hi, look at this with marks

1 Like

Thank you very much.

It’s worked by edit as @anda advised

@Anda Can you send a pull request to https://github.com/littlevgl/lvgl? This seems like an appropriate fix.

Pull request @https://github.com/littlevgl/lvgl/pull/1337

Thank you for the fix!

1 Like

You are welcome.

Best regards.

1 Like