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

Fork of Motor by Simon Ford

Revision:
3:98ced5f56efd
Parent:
2:f265e441bcd9
--- a/Motor.cpp	Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.cpp	Thu Oct 11 18:49:14 2018 +0000
@@ -28,7 +28,7 @@
         _pwm(pwm), _fwd(fwd), _rev(rev) {
 
     // Set initial condition of PWM
-    _pwm.period(0.001);
+    _pwm.period(0.02);
     _pwm = 0;
 
     // Initial condition of output enables