v1

Dependencies:   PinDetect TextLCD mbed

Fork of SunflowerMach1 by Milan Draganic

Revision:
1:3500bf8487d0
Child:
3:bebfc64cefe4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MotorDrivers/Motor.h	Sat Nov 09 06:49:43 2013 +0000
@@ -0,0 +1,26 @@
+#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;
+    
+protected:
+    short direction;    
+    Motor();
+    void move();
+
+public:
+    Motor(PinName, PinName);
+    void movePositive();
+    void moveNegative();
+    void stop();    
+    
+};
+
+#endif