cd4a3e1dfe
Settings to set the steps goal More detail in Motion app New 42px Font
39 lines
954 B
C++
39 lines
954 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <chrono>
|
|
#include "Screen.h"
|
|
#include <bits/unique_ptr.h>
|
|
#include <libs/lvgl/src/lv_core/lv_style.h>
|
|
#include <libs/lvgl/src/lv_core/lv_obj.h>
|
|
#include <components/motion/MotionController.h>
|
|
|
|
namespace Pinetime {
|
|
namespace Applications {
|
|
namespace Screens {
|
|
|
|
class Motion : public Screen{
|
|
public:
|
|
Motion(DisplayApp* app, Controllers::MotionController& motionController);
|
|
~Motion() override;
|
|
|
|
bool Refresh() override;
|
|
bool OnButtonPushed() 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;
|
|
static constexpr uint8_t nbStepsBufferSize = 9;
|
|
char nbStepsBuffer[nbStepsBufferSize+1];
|
|
bool running = true;
|
|
|
|
};
|
|
}
|
|
}
|
|
} |