1
0
Fork 0
InfiniTime/src/components/motor/MotorController.h

23 lines
500 B
C
Raw Normal View History

2021-01-16 04:11:53 +01:00
#pragma once
#include <cstdint>
2021-01-25 18:44:58 +01:00
#include "app_timer.h"
#include "components/settings/Settings.h"
2021-01-16 04:11:53 +01:00
namespace Pinetime {
namespace Controllers {
static constexpr uint8_t pinMotor = 16;
class MotorController {
public:
MotorController( Controllers::Settings &settingsController );
void Init();
void SetDuration(uint8_t motorDuration);
private:
Controllers::Settings& settingsController;
2021-02-05 17:06:56 +01:00
static void vibrate(void * p_context);
2021-01-16 04:11:53 +01:00
};
}
2021-01-25 18:44:58 +01:00
}