20 lines
337 B
C++
20 lines
337 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include "app_timer.h"
|
|
|
|
namespace Pinetime {
|
|
namespace Controllers {
|
|
static constexpr uint8_t pinMotor = 16;
|
|
|
|
class MotorController {
|
|
public:
|
|
void Init();
|
|
void SetDuration(uint8_t motorDuration);
|
|
|
|
private:
|
|
static void vibrate(void * p_context);
|
|
};
|
|
}
|
|
}
|