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.
Fork of HBridge by
Revision 1:ef9cf0926575, committed 2015-10-09
- Comitter:
- WAT34
- Date:
- Fri Oct 09 07:21:02 2015 +0000
- Parent:
- 0:16208393c7ae
- Commit message:
- dekinai
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 Oct 09 07:21:02 2015 +0000 @@ -31,7 +31,7 @@ #ifndef HBRIDGERAW_H #define HBRIDGERAW_H - +#include "SoftPWM.h" #include "mbed.h" /** A simple HBridge controller library @@ -117,7 +117,7 @@ private: - PwmOut enable; + SoftPWM enable; DigitalOut Adrive; DigitalOut Bdrive;