@@ -7,9 +7,9 @@ using namespace Pinetime::Applications::Screens;
7
7
8
8
Motion::Motion (Pinetime::Applications::DisplayApp* app, Controllers::MotionController& motionController)
9
9
: Screen(app), motionController {motionController} {
10
- chart = lv_chart_create (lv_scr_act (), NULL );
10
+ chart = lv_chart_create (lv_scr_act (), nullptr );
11
11
lv_obj_set_size (chart, 240 , 240 );
12
- lv_obj_align (chart, NULL , LV_ALIGN_IN_TOP_MID, 0 , 0 );
12
+ lv_obj_align (chart, nullptr , LV_ALIGN_IN_TOP_MID, 0 , 0 );
13
13
lv_chart_set_type (chart, LV_CHART_TYPE_LINE); /* Show lines and points too*/
14
14
// lv_chart_set_series_opa(chart, LV_OPA_70); /*Opacity of the data series*/
15
15
// lv_chart_set_series_width(chart, 4); /*Line width and point radious*/
@@ -28,13 +28,13 @@ Motion::Motion(Pinetime::Applications::DisplayApp* app, Controllers::MotionContr
28
28
lv_chart_init_points (chart, ser3, 0 );
29
29
lv_chart_refresh (chart); /* Required after direct set*/
30
30
31
- label = lv_label_create (lv_scr_act (), NULL );
31
+ label = lv_label_create (lv_scr_act (), nullptr );
32
32
lv_label_set_text_fmt (label, " X #FF0000 %d# Y #00B000 %d# Z #FFFF00 %d#" , 0 , 0 , 0 );
33
33
lv_label_set_align (label, LV_LABEL_ALIGN_CENTER);
34
- lv_obj_align (label, NULL , LV_ALIGN_IN_TOP_MID, 0 , 10 );
34
+ lv_obj_align (label, nullptr , LV_ALIGN_IN_TOP_MID, 0 , 10 );
35
35
lv_label_set_recolor (label, true );
36
36
37
- labelStep = lv_label_create (lv_scr_act (), NULL );
37
+ labelStep = lv_label_create (lv_scr_act (), nullptr );
38
38
lv_obj_align (labelStep, chart, LV_ALIGN_IN_BOTTOM_LEFT, 0 , 0 );
39
39
lv_label_set_text_static (labelStep, " Steps ---" );
40
40
@@ -58,5 +58,5 @@ void Motion::Refresh() {
58
58
motionController.X () / 0x10 ,
59
59
motionController.Y () / 0x10 ,
60
60
motionController.Z () / 0x10 );
61
- lv_obj_align (label, NULL , LV_ALIGN_IN_TOP_MID, 0 , 10 );
61
+ lv_obj_align (label, nullptr , LV_ALIGN_IN_TOP_MID, 0 , 10 );
62
62
}
0 commit comments