Home
last modified time | relevance | path

Searched refs:chart1 (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/modules/lvgl/accelerometer_chart/src/
Dmain.c20 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()
[all …]