Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)
Fork of Motor by
Revision 12:8d67376b521d, committed 2015-05-18
- Comitter:
- miczyg
- Date:
- Mon May 18 11:05:31 2015 +0000
- Parent:
- 11:2d806364fdcc
- Child:
- 13:d67ecfc6cd7f
- Commit message:
- kuashd;
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Motor.cpp Mon May 18 10:26:25 2015 +0000 +++ b/Motor.cpp Mon May 18 11:05:31 2015 +0000 @@ -28,7 +28,7 @@ { // Set initial condition of PWM - _pwm.period(0.0005); + _pwm.period(0.001); _stdby = 1; // Initial condition of output enables _fwd = 0;