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

Fork of Motor by Simon Ford

Revision:
12:8d67376b521d
Parent:
11:2d806364fdcc
Child:
14:9fa93c83285e
--- 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;