Merge branch 'develop' of
https://github.com/JF002/InfiniTime into StepsApp
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
|
||||
using namespace Pinetime::Applications::Screens;
|
||||
|
||||
Motion::Motion(Pinetime::Applications::DisplayApp *app, Controllers::MotionController& motionController) : Screen(app), motionController{motionController} {
|
||||
Motion::Motion(Pinetime::Applications::DisplayApp* app, Controllers::MotionController& motionController)
|
||||
: Screen(app), motionController {motionController} {
|
||||
chart = lv_chart_create(lv_scr_act(), NULL);
|
||||
lv_obj_set_size(chart, 240, 240);
|
||||
lv_obj_align(chart, NULL, LV_ALIGN_IN_TOP_MID, 0, 0);
|
||||
lv_chart_set_type(chart, LV_CHART_TYPE_LINE); /*Show lines and points too*/
|
||||
//lv_chart_set_series_opa(chart, LV_OPA_70); /*Opacity of the data series*/
|
||||
//lv_chart_set_series_width(chart, 4); /*Line width and point radious*/
|
||||
lv_chart_set_type(chart, LV_CHART_TYPE_LINE); /*Show lines and points too*/
|
||||
// lv_chart_set_series_opa(chart, LV_OPA_70); /*Opacity of the data series*/
|
||||
// lv_chart_set_series_width(chart, 4); /*Line width and point radious*/
|
||||
|
||||
lv_chart_set_range(chart, -1100, 1100);
|
||||
lv_chart_set_update_mode(chart, LV_CHART_UPDATE_MODE_SHIFT);
|
||||
|
Reference in New Issue
Block a user