2021-01-15 22:11:53 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2021-01-25 12:44:58 -05:00
|
|
|
#include "app_timer.h"
|
2021-01-15 22:11:53 -05:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
private:
|
2021-02-05 11:06:56 -05:00
|
|
|
static void vibrate(void * p_context);
|
2021-01-15 22:11:53 -05:00
|
|
|
};
|
|
|
|
}
|
2021-01-25 12:44:58 -05:00
|
|
|
}
|