18 lines
208 B
C++
18 lines
208 B
C++
#ifndef MOTOR_DRIVER_H
|
|
#define MOTOR_DRIVER_H
|
|
|
|
class MotorDriver
|
|
{
|
|
public:
|
|
MotorDriver();
|
|
|
|
void begin();
|
|
|
|
void forward();
|
|
void reverse();
|
|
void stop();
|
|
|
|
void set(double pwm);
|
|
};
|
|
|
|
#endif |