Slow version

Dependencies:   mbed

Fork of SunflowerMach1 by Milan Draganic

Revision:
0:7447b8021b33
Child:
1:2e7d4aa6e79e
diff -r 000000000000 -r 7447b8021b33 Motor.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.h	Fri Nov 08 19:09:47 2013 +0000
@@ -0,0 +1,24 @@
+#ifndef MOTOR_H
+#define MOTOR_H
+
+#include "mbed.h"
+
+#define motorDriveTime 1000 // vrijeme koje se motor kreće, u milisekundama.
+
+class Motor {
+
+private:
+    DigitalOut positiveOut, negativeOut;
+    void move();
+    short direction;
+
+public:
+    Motor(PinName, PinName);
+    void movePositive();
+    void moveNegative();
+    void stop();
+
+
+};
+
+#endif