Dagozilla to RoboCup / Motor_Driver_V2

Dependents:   Coba_Motor_Driver_V2

motor.h

Committer:
alienbernamaihsan
Date:
2019-01-27
Revision:
1:98a8282033ab
Parent:
0:de471bead4f2

File content as of revision 1:98a8282033ab:

#ifndef MOTOR_H
#define MOTOR_H

#include "mbed.h"

class motor
{
public :
    motor(PinName direction, PinName pwmpin);
    void setpwm(float inputpwm);
        
private :
    PwmOut _pwmpin;
    DigitalOut _direction;
};
#endif