Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)
Dependents: FinalProject_Mutex
Fork of Motor by
Diff: Motor.h
- Revision:
- 3:d76429c5c280
- Parent:
- 2:f265e441bcd9
--- a/Motor.h Tue Nov 23 16:16:43 2010 +0000 +++ b/Motor.h Tue Dec 06 23:02:39 2016 +0000 @@ -47,7 +47,7 @@ void speed(float speed); protected: - PwmOut _pwm; + PwmOut _pwm1; DigitalOut _fwd; DigitalOut _rev;