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.
Revision 1:219afa189429, committed 2021-03-19
- 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 |
--- 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;