16 lines
276 B
C++
16 lines
276 B
C++
|
|
class Motor_DC
|
|
{
|
|
private:
|
|
int IN1;
|
|
int IN2;
|
|
int ENA;
|
|
|
|
public:
|
|
Motor_DC(int in1,int in2,int ena): IN1(in1), IN2(in2),ENA(ena){}//Constructor
|
|
void Inicializar_Motor();
|
|
void Adelante(int Velocidad);
|
|
void Atras(int Velocidad);
|
|
void Stop();
|
|
};
|