1
0
Fork 0
InfiniTime/src/components/motor/MotorController.h
2021-04-24 12:00:45 +03:00

22 lines
483 B
C++

#pragma once
#include <cstdint>
#include "app_timer.h"
#include "components/settings/Settings.h"
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;
static void vibrate(void* p_context);
};
}
}