Lines Matching refs:meter
4 static lv_obj_t * meter; variable
8 lv_meter_set_indicator_value(meter, indic, v); in set_value()
16 meter = lv_meter_create(lv_scr_act()); in lv_example_meter_1()
17 lv_obj_center(meter); in lv_example_meter_1()
18 lv_obj_set_size(meter, 200, 200); in lv_example_meter_1()
21 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_1()
22 lv_meter_set_scale_ticks(meter, scale, 41, 2, 10, lv_palette_main(LV_PALETTE_GREY)); in lv_example_meter_1()
23 lv_meter_set_scale_major_ticks(meter, scale, 8, 4, 15, lv_color_black(), 10); in lv_example_meter_1()
28 indic = lv_meter_add_arc(meter, scale, 3, lv_palette_main(LV_PALETTE_BLUE), 0); in lv_example_meter_1()
29 lv_meter_set_indicator_start_value(meter, indic, 0); in lv_example_meter_1()
30 lv_meter_set_indicator_end_value(meter, indic, 20); in lv_example_meter_1()
33 …indic = lv_meter_add_scale_lines(meter, scale, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(L… in lv_example_meter_1()
35 lv_meter_set_indicator_start_value(meter, indic, 0); in lv_example_meter_1()
36 lv_meter_set_indicator_end_value(meter, indic, 20); in lv_example_meter_1()
39 indic = lv_meter_add_arc(meter, scale, 3, lv_palette_main(LV_PALETTE_RED), 0); in lv_example_meter_1()
40 lv_meter_set_indicator_start_value(meter, indic, 80); in lv_example_meter_1()
41 lv_meter_set_indicator_end_value(meter, indic, 100); in lv_example_meter_1()
44 …indic = lv_meter_add_scale_lines(meter, scale, lv_palette_main(LV_PALETTE_RED), lv_palette_main(LV… in lv_example_meter_1()
46 lv_meter_set_indicator_start_value(meter, indic, 80); in lv_example_meter_1()
47 lv_meter_set_indicator_end_value(meter, indic, 100); in lv_example_meter_1()
50 indic = lv_meter_add_needle_line(meter, scale, 4, lv_palette_main(LV_PALETTE_GREY), -10); in lv_example_meter_1()