diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-08-15 15:50:56 (GMT) |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-08-15 15:50:56 (GMT) |
| commit | 30b32e4c8a750e6434f09a2eaa7cebb5d11a524a (patch) | |
| tree | 8b010fe81ce8c11d8eab5efcf20822fdac418f61 /src/components/motor/MotorController.h | |
| parent | 9851ed33d84aa242dfb98c2c3714a20ddbc53f45 (diff) | |
| parent | ee44b6ff4998d6f4d0672c05c1f65c0a9692dc0d (diff) | |
Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpicker
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); }; } } |
