summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingShakeThreshold.h
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-09-28 03:50:08 (GMT)
committerTim Keller <geekboy1011@gmail.com>2022-01-04 02:00:02 (GMT)
commitd2510d7926227df36ff0dcb9fe1b5ea9d586596c (patch)
tree43cf0d085c203ddecf5abe8d975071ad04e9f763 /src/displayapp/screens/settings/SettingShakeThreshold.h
parent6d748206983ca1ae7c929fba58d62ddfdb365650 (diff)
Better Sensitivity UI, Calibration button added
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 387f0b6..f6918f4 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;
};
}
}