From 4b57063d034646a5d9a55827d300e570d8d02c03 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 12 Dec 2025 23:33:08 +0000 Subject: Make chime play twice instead of once --- src/components/motor/MotorController.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/motor/MotorController.h') 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; }; } } -- cgit v1.2.3-70-g09d2