Compatible with TB6612FNG motor driver

Dependents:   MobileArcade

Revision:
3:45035c94addb
Parent:
2:f265e441bcd9
diff -r f265e441bcd9 -r 45035c94addb Motor.h
--- a/Motor.h	Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.h	Tue Dec 11 06:32:10 2018 +0000
@@ -45,6 +45,12 @@
      * @param speed The speed of the motor as a normalised value between -1.0 and 1.0
      */
     void speed(float speed);
+    
+    /** Brake the motor
+     * 
+     * @param shortBrake Whether to short brake the motor or not.
+     */
+    void brake(int shortBrake);
 
 protected:
     PwmOut _pwm;