summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorFlorian Kraupa <fgrauper@gmail.com>2021-05-12 18:23:04 (GMT)
committerFlorian Kraupa <fgrauper@gmail.com>2021-05-15 22:42:31 (GMT)
commitd13dd6dee3e6194a2f3ed2a1adfbbd32ced525a3 (patch)
tree6c07d26460c04366f8f0affbee3de38d6dc56b2b /src/components/motor/MotorController.h
parentd7fa000b851024f45e85e0cd0aa688ff088cf957 (diff)
implemented continuous vibration pattern for incoming calls
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 df61af7..be076ad 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 startRunning(uint8_t motorDuration);
+ void stopRunning();
private:
Controllers::Settings& settingsController;
static void vibrate(void* p_context);
- };
+ bool isBusy;
+ };
}
}