Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
22:c18f04d1dc49
Parent:
8:2abfdbf5a3b8
Child:
23:5238b046119b
--- a/Motor/Motor.h	Wed Nov 16 23:48:46 2016 +0000
+++ b/Motor/Motor.h	Fri Nov 18 02:47:59 2016 +0000
@@ -13,7 +13,11 @@
     void step_clockwise(int steps);
     void step_anticlockwise(int steps);
     void step_anticlockwise(int steps, int wait);
-    void step_clockwise(int steps, int wait); 
+    void step_clockwise(int steps, int wait);
+    void run (bool t);
+    
+    int wait;
+    bool dir; 
 private:  
     DigitalOut M1PWM;
     DigitalOut M2PWM;
@@ -21,7 +25,7 @@
     DigitalOut M2DIR;
     DigitalOut D2;
     
-    int default_wait;
+    
 };
  
 #endif
\ No newline at end of file