Files
InfiniTime/src/components/motor/MotorController.h
Reinhold Gschweicher a2a70f8eda MotorController: no need to make this function a class function
The `StopRinging()` function was used just in `Notifications.h` screen.
That screen already has access to a `motorController` object.
2022-02-19 13:13:36 +01:00

23 lines
394 B
C++

#pragma once
#include <cstdint>
namespace Pinetime {
namespace Controllers {
class MotorController {
public:
MotorController() = default;
void Init();
void RunForDuration(uint8_t motorDuration);
void StartRinging();
void StopRinging();
private:
static void Ring(void* p_context);
static void StopMotor(void* p_context);
};
}
}