summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingShakeThreshold.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/settings/SettingShakeThreshold.h')
-rw-r--r--src/displayapp/screens/settings/SettingShakeThreshold.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/displayapp/screens/settings/SettingShakeThreshold.h b/src/displayapp/screens/settings/SettingShakeThreshold.h
index 387f0b6f..f6918f4d 100644
--- a/src/displayapp/screens/settings/SettingShakeThreshold.h
+++ b/src/displayapp/screens/settings/SettingShakeThreshold.h
@@ -4,7 +4,7 @@
#include <lvgl/lvgl.h>
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
-
+#include <components/motion/MotionController.h>
namespace Pinetime {
namespace Applications {
@@ -12,15 +12,27 @@ namespace Pinetime {
class SettingShakeThreshold : public Screen {
public:
- SettingShakeThreshold(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
- ~SettingShakeThreshold() override;
+ SettingShakeThreshold(DisplayApp* app,
+ Pinetime::Controllers::Settings& settingsController,
+ Controllers::MotionController& motionController,
+ System::SystemTask& systemTask);
+ ~SettingShakeThreshold() override;
+ void Refresh() override;
void UpdateSelected(lv_obj_t* object, lv_event_t event);
private:
Controllers::Settings& settingsController;
- uint8_t optionsTotal;
+ Controllers::MotionController& motionController;
+ System::SystemTask& systemTask;
+
+
+
+
+ uint8_t taskCount;
lv_obj_t* cbOption[2];
+ lv_obj_t *positionArc, *calButton, *calLabel;
+ lv_task_t* refreshTask;
};
}
}