summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-02-14 15:37:28 (GMT)
committerGitea <gitea@fake.local>2021-02-14 15:37:28 (GMT)
commit9d7955b6c0128a72475742495dabb57134dbe56d (patch)
tree27bdf0ae697453f31e0fa6952d3bf0ecbea48c68 /src/components/motor/MotorController.h
parentf534fb0356762122842ea49b481619cb963a5d27 (diff)
parent324c7dab326ea23a6c8502bbb8c6e9b9d87a839f (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/components/motor/MotorController.h')
-rw-r--r--src/components/motor/MotorController.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h
new file mode 100644
index 0000000..bdc20c0
--- /dev/null
+++ b/src/components/motor/MotorController.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <cstdint>
+#include "app_timer.h"
+
+namespace Pinetime {
+ namespace Controllers {
+ static constexpr uint8_t pinMotor = 16;
+
+ class MotorController {
+ public:
+ void Init();
+ void SetDuration(uint8_t motorDuration);
+
+ private:
+ static void vibrate(void * p_context);
+ };
+ }
+}