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

Fork of Motor by Simon Ford

Revision:
10:f22e6393af83
Parent:
8:d192b38e0d5c
Child:
11:2d806364fdcc
--- a/Motor.cpp	Fri May 15 13:44:38 2015 +0000
+++ b/Motor.cpp	Sun May 17 17:56:48 2015 +0000
@@ -28,7 +28,7 @@
 {
 
     // Set initial condition of PWM
-    _pwm.period(0.001);
+    _pwm.period(0.0005);
     _pwm = 0;
     _stdby = 1;
     // Initial condition of output enables