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

Fork of Motor by Simon Ford

Revision:
3:5dee2bd94b2e
Parent:
2:f265e441bcd9
--- a/Motor.h	Tue Nov 23 16:16:43 2010 +0000
+++ b/Motor.h	Sun Dec 11 13:46:26 2016 +0000
@@ -47,7 +47,7 @@
     void speed(float speed);
 
 protected:
-    PwmOut _pwm;
+    PwmOut _pwm1;
     DigitalOut _fwd;
     DigitalOut _rev;