2021-01-15 22:11:53 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Controllers {
|
|
|
|
static constexpr uint8_t pinMotor = 16;
|
|
|
|
|
|
|
|
class MotorController {
|
2021-01-15 22:49:37 -05:00
|
|
|
public:
|
|
|
|
void Init();
|
|
|
|
void SetDuration(uint8_t motorDuration);
|
|
|
|
|
2021-01-23 15:15:42 -05:00
|
|
|
APP_TIMER_DEF(vibTimer);
|
2021-01-15 22:49:37 -05:00
|
|
|
|
|
|
|
private:
|
2021-01-15 22:11:53 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|