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

Fork of Motor by Simon Ford

Revision:
16:f7cdda1a25d7
Parent:
15:025c8e571ff6
--- a/Motor.cpp	Mon May 18 14:41:05 2015 +0000
+++ b/Motor.cpp	Mon May 18 18:05:57 2015 +0000
@@ -28,7 +28,7 @@
 {
 
     // Set initial condition of PWM
-    _pwm.period_us(10);
+    _pwm.period_us(60);
     _stdby = 1;
     // Initial condition of output enables
     _fwd = 0;