Minh Nguyen / MotorDriver
Revision:
0:c58a5bbd417a
Child:
1:756759f67ce3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MotorDriver.h	Tue Feb 09 23:53:44 2021 +0000
@@ -0,0 +1,22 @@
+#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
\ No newline at end of file