1
0
Fork 0
InfiniTime/src/components/motor/MotorController.h
2021-09-13 21:22:53 +03:00

23 lines
424 B
C++

#pragma once
#include <cstdint>
#include "app_timer.h"
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);
};
}
}