Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)
Fork of Motor by
Revision 17:26edc972222e, committed 2015-05-19
- Comitter:
- miczyg
- Date:
- Tue May 19 16:39:03 2015 +0000
- Parent:
- 15:025c8e571ff6
- Commit message:
- Wzmocnienie, period itd ok, wersja P dzia?aj?ca.
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 025c8e571ff6 -r 26edc972222e Motor.cpp --- a/Motor.cpp Mon May 18 14:41:05 2015 +0000 +++ b/Motor.cpp Tue May 19 16:39:03 2015 +0000 @@ -28,7 +28,7 @@ { // Set initial condition of PWM - _pwm.period_us(10); + _pwm.period_us(40); _stdby = 1; // Initial condition of output enables _fwd = 0;