2024-12-25 21:57:57 -06:00
|
|
|
|
|
|
|
class Motor_DC
|
|
|
|
{
|
|
|
|
private:
|
2024-12-25 22:22:02 -06:00
|
|
|
int IN1;
|
|
|
|
int IN2;
|
|
|
|
int ENA;
|
|
|
|
|
2024-12-25 21:57:57 -06:00
|
|
|
public:
|
2024-12-25 22:22:02 -06:00
|
|
|
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();
|
2024-12-25 21:57:57 -06:00
|
|
|
};
|