2021-09-26 22:52:02 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <lvgl/lvgl.h>
|
|
|
|
#include "components/settings/Settings.h"
|
|
|
|
#include "displayapp/screens/Screen.h"
|
2021-09-27 23:50:08 -04:00
|
|
|
#include <components/motion/MotionController.h>
|
2022-02-15 17:56:42 -05:00
|
|
|
#include "systemtask/SystemTask.h"
|
2021-09-26 22:52:02 -04:00
|
|
|
namespace Pinetime {
|
|
|
|
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
|
|
|
|
class SettingShakeThreshold : public Screen {
|
|
|
|
public:
|
2021-09-27 23:50:08 -04:00
|
|
|
SettingShakeThreshold(DisplayApp* app,
|
|
|
|
Pinetime::Controllers::Settings& settingsController,
|
|
|
|
Controllers::MotionController& motionController,
|
|
|
|
System::SystemTask& systemTask);
|
2021-09-26 22:52:02 -04:00
|
|
|
|
2021-09-27 23:50:08 -04:00
|
|
|
~SettingShakeThreshold() override;
|
|
|
|
void Refresh() override;
|
2021-09-26 22:52:02 -04:00
|
|
|
void UpdateSelected(lv_obj_t* object, lv_event_t event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Controllers::Settings& settingsController;
|
2021-09-27 23:50:08 -04:00
|
|
|
Controllers::MotionController& motionController;
|
|
|
|
System::SystemTask& systemTask;
|
2021-10-03 22:36:51 -04:00
|
|
|
uint8_t calibrating;
|
2021-11-07 21:00:35 -05:00
|
|
|
bool EnableForCal;
|
2021-10-03 22:36:51 -04:00
|
|
|
uint32_t vDecay,vCalTime;
|
|
|
|
lv_obj_t *positionArc, *animArc,*calButton, *calLabel;
|
2021-09-27 23:50:08 -04:00
|
|
|
lv_task_t* refreshTask;
|
2021-09-26 22:52:02 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|