2020-01-30 09:28:01 +00:00
|
|
|
#ifndef __motor
|
|
|
|
#define __motor
|
|
|
|
|
|
|
|
|
2020-01-30 14:16:52 +00:00
|
|
|
// Low-level functions to control the motor
|
2020-01-30 09:28:01 +00:00
|
|
|
enum class MotorDirection
|
|
|
|
{
|
|
|
|
Up = 0,
|
|
|
|
Down = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern void motorStart(MotorDirection direction);
|
|
|
|
extern void motorStop();
|
|
|
|
extern bool motorIsOverCurrent();
|
|
|
|
|
|
|
|
#endif
|