Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MotorDriver.h
- Committer:
- khaiminhvn
- Date:
- 2021-03-12
- Revision:
- 1:756759f67ce3
- Parent:
- 0:c58a5bbd417a
File content as of revision 1:756759f67ce3:
#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: DigitalOut ena,enb,intp,intn; }; #endif