cleaned up motor class with separate header and .cpp files

Dependencies:   mbed

Dependents:   TerraBot_Drive_2D TerraBot_Drive_2D TerraBot_Drive_2D_FINAL DUMP_TRUCK_Test ... more

Revision:
0:0a5af2965205
Child:
2:7674afbf8e53
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.h	Fri Oct 07 01:21:10 2016 +0000
@@ -0,0 +1,18 @@
+#ifndef MBED_FLASHER_H
+#define MBED_FLASHER_H
+
+#include "mbed.h"
+
+class Motor {
+    public:
+        Motor(PinName pwm, PinName dir);
+        void write(float Val);
+        float read();
+    private:
+        PwmOut pwmPin;
+        DigitalOut dirPin;
+        float lastVal;
+    
+};
+
+#endif
\ No newline at end of file