1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/examples/widgets/arc/lv_example_arc_1.c

17 lines
332 B
C
Raw Normal View History

2021-04-08 13:07:48 +02:00
#include "../../lv_examples.h"
2021-02-08 09:53:03 +01:00
2021-02-14 14:56:34 +01:00
#if LV_USE_ARC && LV_BUILD_EXAMPLES
2021-02-08 09:53:03 +01:00
2021-03-31 16:18:24 +08:00
void lv_example_arc_1(void)
2021-02-08 09:53:03 +01:00
{
/*Create an Arc*/
lv_obj_t * arc = lv_arc_create(lv_scr_act());
2021-02-08 09:53:03 +01:00
lv_obj_set_size(arc, 150, 150);
lv_arc_set_rotation(arc, 135);
lv_arc_set_bg_angles(arc, 0, 270);
lv_arc_set_value(arc, 40);
lv_obj_center(arc);
2021-02-08 09:53:03 +01:00
}
#endif