From d2510d7926227df36ff0dcb9fe1b5ea9d586596c Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 28 Sep 2021 03:50:08 +0000 Subject: Better Sensitivity UI, Calibration button added --- .../screens/settings/SettingShakeThreshold.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/displayapp/screens/settings/SettingShakeThreshold.h') 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 #include "components/settings/Settings.h" #include "displayapp/screens/Screen.h" - +#include 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; }; } } -- cgit v1.2.3-70-g09d2