PRAWIRA

Motor.h

Committer:
alienbernamaihsan
Date:
2019-09-16
Revision:
0:86d90c65f83b

File content as of revision 0:86d90c65f83b:

#ifndef MOTOR_H
#define MOTOR_H

#include "mbed.h"

class Motor {
    
public :
    Motor(PinName dright , PinName dleft, PinName pwmpin);
    void setpwm(float inputpwm);
        
private :
    PwmOut pwmpin_;
    DigitalOut dright_;
    DigitalOut dleft_;   
};

#endif