No permission to change Motor, so here's a fork! ---E

Dependents:   ASEE-2014

Fork of Motor by Simon Ford

Revision:
3:7f1fd2d62c72
Parent:
2:f265e441bcd9
--- a/Motor.h	Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.h	Thu Feb 27 01:40:41 2014 +0000
@@ -34,11 +34,10 @@
 
     /** Create a motor control interface    
      *
-     * @param pwm A PwmOut pin, driving the H-bridge enable line to control the speed
-     * @param fwd A DigitalOut, set high when the motor should go forward
-     * @param rev A DigitalOut, set high when the motor should go backwards
+     * @param fwd A PwmOut pin, set value when the motor should go forward
+     * @param rev A PwmOut pin, set value when the motor should go backwards
      */
-    Motor(PinName pwm, PinName fwd, PinName rev);
+    Motor(PinName fwd, PinName rev);
     
     /** Set the speed of the motor
      * 
@@ -47,10 +46,8 @@
     void speed(float speed);
 
 protected:
-    PwmOut _pwm;
-    DigitalOut _fwd;
-    DigitalOut _rev;
-
+    PwmOut _fwd;
+    PwmOut _rev;
 };
 
 #endif