1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#pragma once #include <cstdint> namespace Pinetime { namespace Controllers { class MotorController { public: MotorController() = default; void Init(); void RunForDuration(uint8_t motorDuration); void StartRinging(); static void StopRinging(); private: static void Ring(void* p_context); static void StopMotor(void* p_context); }; } }