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*/
|
2021-03-25 13:36:50 +01:00
|
|
|
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);
|
2021-05-07 13:33:53 +02:00
|
|
|
lv_arc_set_rotation(arc, 135);
|
|
|
|
lv_arc_set_bg_angles(arc, 0, 270);
|
|
|
|
lv_arc_set_value(arc, 40);
|
2021-03-25 16:14:17 +01:00
|
|
|
lv_obj_center(arc);
|
2021-02-08 09:53:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|