diff options
| author | Jean-François Milants <jf@codingfield.com> | 2022-01-04 20:48:20 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2022-01-04 20:48:20 (GMT) |
| commit | dc8be2244ceb46fb58d2706935dc05b2d0ecdf8c (patch) | |
| tree | 8e955bb1b6c11c65afcc30eb39174ab20bfa0437 /src/displayapp/screens/settings/SettingShakeThreshold.h | |
| parent | b8b54f47a2a09e32186bf7d8dddc658fae2c6e5f (diff) | |
| parent | bef3e708f6b5a6f71797f72aab89d09520813046 (diff) | |
Merge branch 'geekbozu-ShakeWake' into develop
Diffstat (limited to 'src/displayapp/screens/settings/SettingShakeThreshold.h')
| -rw-r--r-- | src/displayapp/screens/settings/SettingShakeThreshold.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/displayapp/screens/settings/SettingShakeThreshold.h b/src/displayapp/screens/settings/SettingShakeThreshold.h new file mode 100644 index 0000000..b9ddd8b --- /dev/null +++ b/src/displayapp/screens/settings/SettingShakeThreshold.h @@ -0,0 +1,36 @@ +#pragma once + +#include <cstdint> +#include <lvgl/lvgl.h> +#include "components/settings/Settings.h" +#include "displayapp/screens/Screen.h" +#include <components/motion/MotionController.h> +namespace Pinetime { + + namespace Applications { + namespace Screens { + + class SettingShakeThreshold : public Screen { + public: + 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; + Controllers::MotionController& motionController; + System::SystemTask& systemTask; + uint8_t calibrating; + bool EnableForCal; + uint32_t vDecay,vCalTime; + lv_obj_t *positionArc, *animArc,*calButton, *calLabel; + lv_task_t* refreshTask; + }; + } + } +} |
