hej

Dependents:   RoboticHackathon

Revision:
0:66a1feb3ba85
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hack_motor.h	Sat Apr 05 07:56:52 2014 +0000
@@ -0,0 +1,27 @@
+#ifndef HACK_MOTOR_H
+#define HACK_MOTOR_H
+#include "mbed.h"
+
+class Wheel {
+ 
+public:
+    PwmOut M1A, M2A;
+    
+    DigitalOut M1B, M2B;
+    
+    Wheel();
+    void FW();
+    void BW();
+    void right();
+    void left();
+    void stop();
+    void init();
+    float speed;
+protected:
+    float fw, bw;
+    
+};
+
+    
+
+#endif
\ No newline at end of file