diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-08-17 12:35:29 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-08-17 12:35:29 (GMT) |
| commit | 5b969ccfa975632606aa0b3dc8165460effb9cc3 (patch) | |
| tree | 38cb0686dd51b5d627ee597a07352e291a004749 /src/components/motor/MotorController.h | |
| parent | 7ac6bdfe71f10dd4388da6d3fd29650b072f71f7 (diff) | |
| parent | ee44b6ff4998d6f4d0672c05c1f65c0a9692dc0d (diff) | |
Merge branch 'develop' into update_touch_driver
Diffstat (limited to 'src/components/motor/MotorController.h')
| -rw-r--r-- | src/components/motor/MotorController.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h index df61af7..d2c9fe5 100644 --- a/src/components/motor/MotorController.h +++ b/src/components/motor/MotorController.h @@ -12,11 +12,14 @@ namespace Pinetime { public: MotorController(Controllers::Settings& settingsController); void Init(); - void SetDuration(uint8_t motorDuration); + void RunForDuration(uint8_t motorDuration); + void StartRinging(); + static void StopRinging(); private: + static void Ring(void* p_context); Controllers::Settings& settingsController; - static void vibrate(void* p_context); + static void StopMotor(void* p_context); }; } } |
