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

Fork of Motor by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
miczyg
Date:
Mon May 18 13:06:14 2015 +0000
Parent:
13:d67ecfc6cd7f
Child:
15:025c8e571ff6
Commit message:
period 0.0001, wait 3ms

Changed in this revision

Motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Motor.cpp	Mon May 18 12:49:42 2015 +0000
+++ b/Motor.cpp	Mon May 18 13:06:14 2015 +0000
@@ -28,7 +28,7 @@
 {
 
     // Set initial condition of PWM
-    _pwm.period(0.001);
+    _pwm.period(0.0001);
     _stdby = 1;
     // Initial condition of output enables
     _fwd = 0;