Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select) For maxon controll
Dependents: NHK2015 NHK2015_new
Fork of Motor by
Diff: Motor.h
- Revision:
- 4:e98b342edd25
- Parent:
- 2:f265e441bcd9
--- a/Motor.h Thu Sep 03 02:36:46 2015 +0000 +++ b/Motor.h Thu Sep 10 07:27:18 2015 +0000 @@ -45,6 +45,7 @@ * @param speed The speed of the motor as a normalised value between -1.0 and 1.0 */ void speed(float speed); + void setfrequency(float setfrequency); protected: PwmOut _pwm;