2021-03-31 17:47:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <chrono>
|
2021-10-13 20:08:35 +00:00
|
|
|
#include "displayapp/screens/Screen.h"
|
2021-11-03 22:08:57 +00:00
|
|
|
#include <lvgl/src/lv_core/lv_style.h>
|
|
|
|
#include <lvgl/src/lv_core/lv_obj.h>
|
2021-03-31 17:47:27 +00:00
|
|
|
#include <components/motion/MotionController.h>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
|
2021-04-18 17:28:14 +00:00
|
|
|
class Motion : public Screen {
|
2021-03-31 17:47:27 +00:00
|
|
|
public:
|
|
|
|
Motion(DisplayApp* app, Controllers::MotionController& motionController);
|
|
|
|
~Motion() override;
|
|
|
|
|
2021-07-19 13:26:12 +00:00
|
|
|
void Refresh() override;
|
2021-03-31 17:47:27 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Controllers::MotionController& motionController;
|
2021-04-18 17:28:14 +00:00
|
|
|
lv_obj_t* chart;
|
|
|
|
lv_chart_series_t* ser1;
|
|
|
|
lv_chart_series_t* ser2;
|
|
|
|
lv_chart_series_t* ser3;
|
2021-04-26 20:29:48 +00:00
|
|
|
lv_obj_t* label;
|
2021-03-31 17:47:27 +00:00
|
|
|
|
|
|
|
lv_obj_t* labelStep;
|
2021-07-19 13:26:12 +00:00
|
|
|
lv_task_t* taskRefresh;
|
2021-03-31 17:47:27 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2021-07-19 13:26:12 +00:00
|
|
|
}
|