aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-08-15 17:50:56 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-08-15 17:50:56 +0200
commit30b32e4c8a750e6434f09a2eaa7cebb5d11a524a (patch)
tree8b010fe81ce8c11d8eab5efcf20822fdac418f61 /src/components/motor/MotorController.h
parent9851ed33d84aa242dfb98c2c3714a20ddbc53f45 (diff)
parentee44b6ff4998d6f4d0672c05c1f65c0a9692dc0d (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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h
index df61af78..d2c9fe5f 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);
};
}
}