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

Fork of Motor by Simon Ford

Revision:
11:2d806364fdcc
Parent:
10:f22e6393af83
Child:
12:8d67376b521d
--- 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;