summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorhubmartin <hub.martin@gmail.com>2021-08-22 22:11:57 +0200
committerhubmartin <hub.martin@gmail.com>2021-08-22 22:11:57 +0200
commit2a299fe2759e934c69b360995745d43c741115f8 (patch)
tree83813367684eba510da5d5295aca476151b545f3 /src/components/motor/MotorController.h
parent0d083a2beac118234f07dacee42f0925420abb42 (diff)
parentdf8ea7fe523bb9ec0ac3e24f0b1bebe5743d90cc (diff)
Merge branch 'develop' into pinmap
Diffstat (limited to 'src/components/motor/MotorController.h')
-rw-r--r--src/components/motor/MotorController.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h
index 00cd1937..1d8fcc95 100644
--- a/src/components/motor/MotorController.h
+++ b/src/components/motor/MotorController.h
@@ -11,11 +11,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);
};
}
}