Better Sensitivity UI, Calibration button added

This commit is contained in:
Tim Keller
2021-09-28 03:50:08 +00:00
parent 6d74820698
commit d2510d7926
6 changed files with 89 additions and 69 deletions

View File

@@ -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;
};
}
}