diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-12-12 23:33:08 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2026-01-07 23:51:11 +0000 |
| commit | 4b57063d034646a5d9a55827d300e570d8d02c03 (patch) | |
| tree | 4b1a154311eb42aac642142c3fcfd800f05d2424 /src/components/motor/MotorController.h | |
| parent | 0fabfe99d9115c5e258a14fd0c985d300ee41f2d (diff) | |
Make chime play twice instead of oncelocal
Diffstat (limited to 'src/components/motor/MotorController.h')
| -rw-r--r-- | src/components/motor/MotorController.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h index ab8c956e..04b08b08 100644 --- a/src/components/motor/MotorController.h +++ b/src/components/motor/MotorController.h @@ -13,15 +13,19 @@ namespace Pinetime { void Init(); void RunForDuration(uint8_t motorDuration); + void Pulse(uint32_t interval, uint8_t repetitions); void StartRinging(); void StopRinging(); bool IsRinging(); private: static void Ring(TimerHandle_t xTimer); + static void RingWithLatch(TimerHandle_t xTimer); static void StopMotor(TimerHandle_t xTimer); TimerHandle_t shortVib; TimerHandle_t longVib; + TimerHandle_t pulse; + uint8_t pulseLatch; }; } } |
