lvgl_cpp/examples/widgets/bar/lv_example_bar_1.c

13 lines
265 B
C
Raw Normal View History

2023-03-14 11:57:25 +00:00
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
void lv_example_bar_1(void)
{
lv_obj_t * bar1 = lv_bar_create(lv_scr_act());
lv_obj_set_size(bar1, 200, 20);
lv_obj_center(bar1);
lv_bar_set_value(bar1, 70, LV_ANIM_OFF);
}
#endif