/lvgl-3.7.0/src/extra/widgets/chart/ |
D | lv_chart.c | 43 static void new_points_alloc(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t cnt, lv_coord_t ** a… 83 lv_chart_series_t * ser; in lv_chart_set_type() local 84 _LV_LL_READ_BACK(&chart->series_ll, ser) { in lv_chart_set_type() 85 lv_mem_free(ser->x_points); in lv_chart_set_type() 86 ser->x_points = NULL; in lv_chart_set_type() 91 lv_chart_series_t * ser; in lv_chart_set_type() local 92 _LV_LL_READ_BACK(&chart->series_ll, ser) { in lv_chart_set_type() 93 ser->x_points = lv_mem_alloc(sizeof(lv_point_t) * chart->point_cnt); in lv_chart_set_type() 94 LV_ASSERT_MALLOC(ser->x_points); in lv_chart_set_type() 95 if(ser->x_points == NULL) return; in lv_chart_set_type() [all …]
|
D | lv_chart.h | 87 lv_chart_series_t * ser; member 247 uint16_t lv_chart_get_x_start_point(const lv_obj_t * obj, lv_chart_series_t * ser); 256 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_point_t … 307 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id); 315 lv_chart_series_t * lv_chart_get_series_next(const lv_obj_t * chart, const lv_chart_series_t * ser); 345 …id lv_chart_set_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_chart_series_t * ser, 366 void lv_chart_set_all_value(lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value); 374 void lv_chart_set_next_value(lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t value); 383 void lv_chart_set_next_value2(lv_obj_t * obj, lv_chart_series_t * ser, lv_coord_t x_value, lv_coord… 392 void lv_chart_set_value_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint16_t id, lv_coord_t valu… [all …]
|
/lvgl-3.7.0/examples/widgets/chart/ |
D | lv_example_chart_9.c | 7 lv_chart_series_t * ser = lv_chart_get_series_next(chart, NULL); in add_data() local 9 lv_chart_set_next_value(chart, ser, lv_rand(10, 90)); in add_data() 12 uint16_t s = lv_chart_get_x_start_point(chart, ser); in add_data() 13 lv_coord_t * a = lv_chart_get_y_array(chart, ser); in add_data() 34 …lv_chart_series_t * ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXI… in lv_example_chart_9() local 38 lv_chart_set_next_value(chart, ser, lv_rand(10, 90)); in lv_example_chart_9()
|
D | lv_example_chart_9.py | 5 chart.set_next_value(ser, lv.rand(10, 90)) 8 s = chart.get_x_start_point(ser) 9 a = chart.get_y_array(ser) 26 ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y) variable 29 chart.set_next_value(ser, lv.rand(10, 90))
|
D | lv_example_chart_7.c | 9 lv_chart_series_t * ser = lv_chart_get_series_next(obj, NULL); in draw_event_cb() local 15 lv_coord_t * x_array = lv_chart_get_x_array(obj, ser); in draw_event_cb() 16 lv_coord_t * y_array = lv_chart_get_y_array(obj, ser); in draw_event_cb() 18 uint32_t start_point = lv_chart_get_x_start_point(obj, ser); in draw_event_cb() 57 …lv_chart_series_t * ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXI… in lv_example_chart_7() local 60 lv_chart_set_next_value2(chart, ser, lv_rand(0, 200), lv_rand(0, 1000)); in lv_example_chart_7()
|
D | lv_example_chart_4.c | 22 lv_chart_series_t * ser = lv_chart_get_series_next(chart, NULL); in event_cb() local 23 while(ser) { in event_cb() 25 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb() 27 lv_coord_t * y_array = lv_chart_get_y_array(chart, ser); in event_cb() 50 ser = lv_chart_get_series_next(chart, ser); in event_cb()
|
D | lv_example_chart_7.py | 10 ser = obj.get_series_next(None) 20 start_point = chart.get_x_start_point(ser) 35 chart.set_next_value2(ser, x, y) 62 ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y) variable 70 ser.x_points = x_array 71 ser.y_points = y_array
|
D | lv_example_chart_6.c | 5 static lv_chart_series_t * ser; variable 25 lv_coord_t * data_array = lv_chart_get_y_array(chart, ser); in event_cb() 74 ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXIS_PRIMARY_Y); in lv_example_chart_6() 77 lv_chart_set_next_value(chart, ser, lv_rand(10, 90)); in lv_example_chart_6()
|
D | lv_example_chart_5.c | 79 …lv_chart_series_t * ser = lv_chart_add_series(chart, lv_palette_main(LV_PALETTE_RED), LV_CHART_AXI… in lv_example_chart_5() local 83 lv_chart_set_ext_y_array(chart, ser, (lv_coord_t *)ecg_sample); in lv_example_chart_5()
|
D | lv_example_chart_5.py | 72 ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y) variable 76 chart.set_ext_y_array(ser, ecg_sample)
|
D | lv_example_chart_6.py | 21 self.ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y) 26 self.ser.y_points = self.ser_p 47 chart.get_point_pos_by_id(self.ser, self.last_id, p)
|
/lvgl-3.7.0/docs/widgets/extra/ |
D | chart.md | 48 `lv_chart_set_ext_y_array(chart, ser, value_array)` makes the chart use an external array for the g… 53 The value array of a series can be obtained with `lv_chart_get_y_array(chart, ser)`, which can be u… 55 …_SCATTER` type `lv_chart_set_ext_x_array(chart, ser, value_array)` and `lv_chart_get_x_array(char… 60 2. Use `lv_chart_set_value_by_id(chart, ser, id, value)` where `id` is the index of the point you w… 61 3. Use the `lv_chart_set_next_value(chart, ser, value)`. 62 4. Initialize all points to a given value with: `lv_chart_set_all_value(chart, ser, value)`. 66 …CATTER` type `lv_chart_set_value_by_id2(chart, ser, id, value)` and `lv_chart_set_next_value2(cha… 97 index with the function `lv_chart_set_x_start_point(chart, ser, id)` where `id` is the new index po…
|
/lvgl-3.7.0/ |
D | README_pt_BR.md | 35 * Pode ser usado com qualquer microcontrolador e display, independente do hardware 111 O LVGL é completamente independente de plataforma e pode ser usado com qualquer MCU que atenda aos …
|
/lvgl-3.7.0/demos/widgets/ |
D | lv_demo_widgets.c | 1391 const lv_chart_series_t * ser = dsc->sub_part_ptr; in chart_event_cb() local 1399 dsc->rect_dsc->shadow_color = ser->color; in chart_event_cb() 1414 if(ser == lv_chart_get_series_next(obj, NULL)) { in chart_event_cb() 1438 rect_dsc.bg_color = ser->color; in chart_event_cb()
|