#pragma once #include #include #include "displayapp/screens/Screen.h" #include #include #include #include "displayapp/Controllers.h" #include "displayapp/apps/Apps.h" namespace Pinetime { namespace Applications { namespace Screens { class Motion : public Screen { public: Motion(Controllers::MotionController& motionController); ~Motion() override; void Refresh() override; private: Controllers::MotionController& motionController; lv_obj_t* chart; lv_chart_series_t* ser1; lv_chart_series_t* ser2; lv_chart_series_t* ser3; lv_obj_t* label; lv_obj_t* labelStep; lv_task_t* taskRefresh; }; } template <> struct AppTraits { static constexpr Apps app = Apps::Motion; static constexpr const char* icon = "M"; static Screens::Screen* Create(AppControllers& controllers) { return new Screens::Motion(controllers.motionController); }; }; } }