Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)

Fork of Motor by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
miczyg
Date:
Mon May 18 10:26:25 2015 +0000
Parent:
10:f22e6393af83
Child:
12:8d67376b521d
Commit message:
ALSKJD

Changed in this revision

Motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Motor.cpp	Sun May 17 17:56:48 2015 +0000
+++ b/Motor.cpp	Mon May 18 10:26:25 2015 +0000
@@ -29,7 +29,6 @@
 
     // Set initial condition of PWM
     _pwm.period(0.0005);
-    _pwm = 0;
     _stdby = 1;
     // Initial condition of output enables
     _fwd = 0;