A simple Hbridge driver library (tested with the L293D). It uses a PWM pin on the enable and two DIOs on the control pins. Versatile.

Dependents:   Garage_Control

Files at this revision

API Documentation at this revision

Comitter:
pkunnals
Date:
Fri Mar 19 18:57:47 2021 +0000
Parent:
0:16208393c7ae
Commit message:
L293D Motor drive IC

Changed in this revision

HBridge.h Show annotated file Show diff for this revision Revisions of this file
diff -r 16208393c7ae -r 219afa189429 HBridge.h
--- a/HBridge.h	Thu Sep 20 11:36:17 2012 +0000
+++ b/HBridge.h	Fri Mar 19 18:57:47 2021 +0000
@@ -117,7 +117,7 @@
     
     
     private:
-    PwmOut enable;
+    DigitalOut enable;
     DigitalOut Adrive;
     DigitalOut Bdrive;