2019-11-11 22:26:34 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-21 08:06:37 +02:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
class Motor {
|
|
|
|
|
|
|
|
public:
|
2019-11-11 22:26:34 +01:00
|
|
|
Motor(int a, int b, int pwm, int angle);
|
|
|
|
void drive(int speed);
|
2019-10-21 08:06:37 +02:00
|
|
|
|
|
|
|
public:
|
2019-11-11 22:26:34 +01:00
|
|
|
int pinA, pinB, pinPwm, angle;
|
2019-10-21 08:06:37 +02:00
|
|
|
|
|
|
|
};
|