1
0
Fork 0
InfiniTime/src/components/motor/MotorController.h
2021-09-14 23:38:42 +03:00

22 lines
401 B
C++

#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);
};
}
}