Class library for a L298 H-Bridge

Revision:
1:0af00b1a2b52
Parent:
0:85a98c7707c9
Child:
2:5802cf5f739f
--- a/L298HBridge.h	Tue Feb 14 09:48:32 2017 +0000
+++ b/L298HBridge.h	Tue Feb 14 12:41:49 2017 +0000
@@ -53,15 +53,27 @@
     */
     L298HBridge(PinName ENpin, PinName FWDpin, PinName REVpin);
     
-    /** Return the current pulse duration as microseconds (us).
+    /** Setting the DC motor to spin in the forward directio.
     * @param 
     *     None
     */
     void Fwd();
     
-    /** Return the current pulse duration as centimeters (cm).
+    /** Setting the DC motor to spin in the Revers direction.
+    * @param 
+    *     None
+    */
+    void Rev();
+    
+     /** Stopping the motor.
     * @param 
-    *     PWMPercentage Gjhgjhgsjsgdjhsgdjhsgd
+    *     None
+    */
+    void Stop();
+    
+     /** Set the speed of the motor.
+    * @param 
+    *     PWMPercentage, variable to set te speed of the motor (any value from 0.1 - 1).
     * @return
     *     None
     */