/lvgl-3.5.0/examples/widgets/meter/ |
D | lv_example_meter_4.py | 5 meter = lv.meter(lv.scr_act()) variable 8 meter.remove_style(None, lv.PART.MAIN) 9 meter.remove_style(None, lv.PART.INDICATOR) 11 meter.set_size(200, 200) 12 meter.center() 15 scale = meter.add_scale() 16 meter.set_scale_ticks(scale, 0, 0, 0, lv.color_black()) 17 meter.set_scale_range(scale, 0, 100, 360, 0) 21 indic1 = meter.add_arc(scale, indic_w,lv.palette_main(lv.PALETTE.ORANGE), 0) 22 meter.set_indicator_start_value(indic1, 0) [all …]
|
D | lv_example_meter_1.c | 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() [all …]
|
D | lv_example_meter_4.c | 9 lv_obj_t * meter = lv_meter_create(lv_scr_act()); in lv_example_meter_4() local 12 lv_obj_remove_style(meter, NULL, LV_PART_MAIN); in lv_example_meter_4() 13 lv_obj_remove_style(meter, NULL, LV_PART_INDICATOR); in lv_example_meter_4() 15 lv_obj_set_size(meter, 200, 200); in lv_example_meter_4() 16 lv_obj_center(meter); in lv_example_meter_4() 19 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_4() 20 lv_meter_set_scale_ticks(meter, scale, 0, 0, 0, lv_color_black()); in lv_example_meter_4() 21 lv_meter_set_scale_range(meter, scale, 0, 100, 360, 0); in lv_example_meter_4() 25 …lv_meter_indicator_t * indic1 = lv_meter_add_arc(meter, scale, indic_w, lv_palette_main(LV_PALETTE… in lv_example_meter_4() 26 lv_meter_set_indicator_start_value(meter, indic1, 0); in lv_example_meter_4() [all …]
|
D | lv_example_meter_1.py | 7 meter.set_indicator_value(indic, v) 12 meter = lv.meter(lv.scr_act()) variable 13 meter.center() 14 meter.set_size(200, 200) 17 scale = meter.add_scale() 18 meter.set_scale_ticks(scale, 51, 2, 10, lv.palette_main(lv.PALETTE.GREY)) 19 meter.set_scale_major_ticks(scale, 10, 4, 15, lv.color_black(), 10) 24 indic = meter.add_arc(scale, 3, lv.palette_main(lv.PALETTE.BLUE), 0) 25 meter.set_indicator_start_value(indic, 0) 26 meter.set_indicator_end_value(indic, 20) [all …]
|
D | lv_example_meter_3.c | 4 static lv_obj_t * meter; variable 8 lv_meter_set_indicator_end_value(meter, indic, v); in set_value() 16 meter = lv_meter_create(lv_scr_act()); in lv_example_meter_3() 17 lv_obj_set_size(meter, 220, 220); in lv_example_meter_3() 18 lv_obj_center(meter); in lv_example_meter_3() 22 lv_meter_scale_t * scale_min = lv_meter_add_scale(meter); in lv_example_meter_3() 23 lv_meter_set_scale_ticks(meter, scale_min, 61, 1, 10, lv_palette_main(LV_PALETTE_GREY)); in lv_example_meter_3() 24 lv_meter_set_scale_range(meter, scale_min, 0, 60, 360, 270); in lv_example_meter_3() 27 lv_meter_scale_t * scale_hour = lv_meter_add_scale(meter); in lv_example_meter_3() 28 …lv_meter_set_scale_ticks(meter, scale_hour, 12, 0, 0, lv_palette_main(LV_PALETTE_GREY)); … in lv_example_meter_3() [all …]
|
D | lv_example_meter_2.c | 4 static lv_obj_t * meter; variable 8 lv_meter_set_indicator_end_value(meter, indic, v); in set_value() 17 meter = lv_meter_create(lv_scr_act()); in lv_example_meter_2() 18 lv_obj_center(meter); in lv_example_meter_2() 19 lv_obj_set_size(meter, 200, 200); in lv_example_meter_2() 22 lv_obj_remove_style(meter, NULL, LV_PART_INDICATOR); in lv_example_meter_2() 25 lv_meter_scale_t * scale = lv_meter_add_scale(meter); in lv_example_meter_2() 26 lv_meter_set_scale_ticks(meter, scale, 11, 2, 10, lv_palette_main(LV_PALETTE_GREY)); in lv_example_meter_2() 27 lv_meter_set_scale_major_ticks(meter, scale, 1, 2, 30, lv_color_hex3(0xeee), 15); in lv_example_meter_2() 28 lv_meter_set_scale_range(meter, scale, 0, 100, 270, 90); in lv_example_meter_2() [all …]
|
D | lv_example_meter_3.py | 39 meter.set_indicator_value(indic, v) 44 meter = lv.meter(lv.scr_act()) variable 45 meter.set_size(220, 220) 46 meter.center() 50 scale_min = meter.add_scale() 51 meter.set_scale_ticks(scale_min, 61, 1, 10, lv.palette_main(lv.PALETTE.GREY)) 52 meter.set_scale_range(scale_min, 0, 60, 360, 270) 55 scale_hour = meter.add_scale() 56 meter.set_scale_ticks(scale_hour, 12, 0, 0, lv.palette_main(lv.PALETTE.GREY)) # 12 ticks 57 meter.set_scale_major_ticks(scale_hour, 1, 2, 20, lv.color_black(), 10) # Every tick is maj… [all …]
|
D | lv_example_meter_2.py | 7 meter.set_indicator_end_value(indic, v) 13 meter = lv.meter(lv.scr_act()) variable 14 meter.center() 15 meter.set_size(200, 200) 18 meter.remove_style(None, lv.PART.INDICATOR) 21 scale = meter.add_scale() 22 meter.set_scale_ticks(scale, 11, 2, 10, lv.palette_main(lv.PALETTE.GREY)) 23 meter.set_scale_major_ticks(scale, 1, 2, 30, lv.color_hex3(0xeee), 10) 24 meter.set_scale_range(scale, 0, 100, 270, 90) 27 indic1 = meter.add_arc(scale, 10, lv.palette_main(lv.PALETTE.RED), 0) [all …]
|
D | index.rst | 2 Simple meter 5 .. lv_example:: widgets/meter/lv_example_meter_1 9 A meter with multiple arcs 12 .. lv_example:: widgets/meter/lv_example_meter_2 16 A clock from a meter 19 .. lv_example:: widgets/meter/lv_example_meter_3 26 .. lv_example:: widgets/meter/lv_example_meter_4
|
/lvgl-3.5.0/docs/widgets/extra/ |
D | meter.md | 16 …*Scale* needs to be added to the Meter with `lv_meter_scale_t * scale = lv_meter_add_scale(meter)`. 17 …bels on the major ticks. Later indicators (needles, arcs, tick modifiers) can be added to the meter 21 The minor tick lines can be configured with: `lv_meter_set_scale_ticks(meter, scale, tick_count, li… 23 To add major tick lines use `lv_meter_set_scale_major_ticks(meter, scale, nth_major, tick_width, ti… 27 `lv_meter_set_scale_range(meter, scale, min, max, angle_range, rotation)` sets the value and angle … 37 `indic = lv_meter_add_needle_line(meter, scale, line_width, line_color, r_mod)` adds a needle line … 39 `lv_meter_set_indicator_value(meter, indic, value)` sets the value of the indicator. 43 `indic = lv_meter_add_needle_img(meter, scale, img_src, pivot_x, pivot_y)` sets an image that will … 46 `lv_meter_set_indicator_value(meter, inidicator, value)` sets the value of the indicator. 49 `indic = lv_meter_add_arc(meter, scale, arc_width, arc_color, r_mod)` adds and arc indicator. . By … [all …]
|
D | index.md | 17 meter
|
/lvgl-3.5.0/src/extra/widgets/meter/ |
D | lv_meter.c | 69 lv_meter_t * meter = (lv_meter_t *)obj; in lv_meter_add_scale() local 71 lv_meter_scale_t * scale = _lv_ll_ins_head(&meter->scale_ll); in lv_meter_add_scale() 126 lv_meter_t * meter = (lv_meter_t *)obj; in lv_meter_add_needle_line() local 127 lv_meter_indicator_t * indic = _lv_ll_ins_head(&meter->indicator_ll); in lv_meter_add_needle_line() 146 lv_meter_t * meter = (lv_meter_t *)obj; in lv_meter_add_needle_img() local 147 lv_meter_indicator_t * indic = _lv_ll_ins_head(&meter->indicator_ll); in lv_meter_add_needle_img() 166 lv_meter_t * meter = (lv_meter_t *)obj; in lv_meter_add_arc() local 167 lv_meter_indicator_t * indic = _lv_ll_ins_head(&meter->indicator_ll); in lv_meter_add_arc() 186 lv_meter_t * meter = (lv_meter_t *)obj; in lv_meter_add_scale_lines() local 187 lv_meter_indicator_t * indic = _lv_ll_ins_head(&meter->indicator_ll); in lv_meter_add_scale_lines() [all …]
|
/lvgl-3.5.0/examples/widgets/bar/ |
D | index.rst | 13 Temperature meter
|
/lvgl-3.5.0/demos/music/ |
D | README.md | 16 - The spectrum meter UI does the followings:
|
/lvgl-3.5.0/demos/widgets/ |
D | lv_demo_widgets.c | 1108 lv_obj_t * meter = lv_meter_create(cont); in create_meter_box() local 1109 lv_obj_remove_style(meter, NULL, LV_PART_MAIN); in create_meter_box() 1110 lv_obj_remove_style(meter, NULL, LV_PART_INDICATOR); in create_meter_box() 1111 lv_obj_set_width(meter, LV_PCT(100)); in create_meter_box() 1143 lv_obj_set_grid_cell(meter, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 1, 3); in create_meter_box() 1156 lv_obj_set_grid_cell(meter, LV_GRID_ALIGN_START, 0, 2, LV_GRID_ALIGN_START, 1, 1); in create_meter_box() 1166 return meter; in create_meter_box()
|
/lvgl-3.5.0/docs/overview/ |
D | object.md | 192 - `LV_PART_TICKS` Ticks on scales e.g. for a chart or meter
|
D | style.md | 115 - `LV_PART_TICKS` Ticks on scales e.g. for a chart or meter
|
/lvgl-3.5.0/docs/ |
D | CHANGELOG.md | 111 - fix(meter): fix setting part_draw_dsc.id in needle img drawing [`716e5e2`](https://github.com/lvg… 289 - fix(meter): fix typo [`3308`](https://github.com/lvgl/lvgl/pull/3308) 305 - fix(meter): fix infinite loop caused by loop variable type mismatch [`3232`](https://github.com/l… 401 - fix(meter): improve the precision of tick line drawing [`0255c6d`](https://github.com/lvgl/lvgl/c… 889 - fix(meter) make lv_meter_indicator_type_t of type uint8_t [`2632`](https://github.com/lvgl/lvgl/p… 1097 - fix(arc, meter) fix invalidation in special cases [`0f14f49`](https://github.com/lvgl/lvgl/commit… 1102 - fix(meter) fix inner mask usage [`c28c146`](https://github.com/lvgl/lvgl/commit/c28c14631040fd08d… 1115 - fix(meter) fix needle image invalidation [`54d8e81`](https://github.com/lvgl/lvgl/commit/54d8e817… 1405 - fix(meter) fix needle image invalidation <a href="https://github.com/lvgl/lvgl/commit/54d8e817">5…
|