Lines Matching refs:chart1
20 static lv_obj_t *chart1; variable
41 lv_chart_set_next_value(chart1, ser_x, sensor_value_to_double(&accel[0])); in sensor_timer_cb()
42 lv_chart_set_next_value(chart1, ser_y, sensor_value_to_double(&accel[1])); in sensor_timer_cb()
43 lv_chart_set_next_value(chart1, ser_z, sensor_value_to_double(&accel[2])); in sensor_timer_cb()
48 chart1 = lv_chart_create(parent); in create_accelerometer_chart()
49 lv_obj_set_size(chart1, LV_HOR_RES, LV_VER_RES); in create_accelerometer_chart()
50 lv_chart_set_type(chart1, LV_CHART_TYPE_LINE); in create_accelerometer_chart()
51 lv_chart_set_div_line_count(chart1, 5, 8); in create_accelerometer_chart()
52 lv_chart_set_range(chart1, LV_CHART_AXIS_PRIMARY_Y, -20, 20); /* roughly -/+ 2G */ in create_accelerometer_chart()
53 lv_chart_set_update_mode(chart1, LV_CHART_UPDATE_MODE_SHIFT); in create_accelerometer_chart()
55 ser_x = lv_chart_add_series(chart1, lv_palette_main(LV_PALETTE_RED), in create_accelerometer_chart()
57 ser_y = lv_chart_add_series(chart1, lv_palette_main(LV_PALETTE_BLUE), in create_accelerometer_chart()
59 ser_z = lv_chart_add_series(chart1, lv_palette_main(LV_PALETTE_GREEN), in create_accelerometer_chart()
62 lv_chart_set_point_count(chart1, CONFIG_SAMPLE_CHART_POINTS_PER_SERIES); in create_accelerometer_chart()
65 lv_obj_set_style_size(chart1, 0, 0, LV_PART_INDICATOR); in create_accelerometer_chart()