Small class to control a stepper motor

Dependents:   tuner

Revision:
0:278f07b2be46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.h	Sun Nov 25 23:10:31 2012 +0000
@@ -0,0 +1,20 @@
+#pragma once
+#include "mbed.h"
+#include "string.h"
+
+using namespace std;
+
+class Motor {
+
+public:
+
+    Motor(PinName enable,PinName direction,PinName step);
+    ~Motor();
+
+    void motor_turn(int, int);
+
+private:
+    DigitalOut _enable;
+    DigitalOut _direction;
+    PwmOut _step;
+};
\ No newline at end of file