Minh Nguyen / MotorDriver

MotorDriver.h

Committer:
khaiminhvn
Date:
2021-02-09
Revision:
0:c58a5bbd417a
Child:
1:756759f67ce3

File content as of revision 0:c58a5bbd417a:

#ifndef MOTORDRIVER_H
#define MOTORDRIVER_H

//INCLUDES
#include "mbed.h"
#include "Defs_Sett.h"

class MotorDriver{
    public:
    //Constructor
    MotorDriver();
    
    //Functions
    void moveForward(int s); //Drive Motor Forward
    void moveBackward(int s); //Drive Motor Backward
    void stop(); //Halt and Put Motors on Brakes
    
    private:
    AnalogOut ena,enb,intp,intn;
};

#endif