A class to control a model R/C servo, using a PwmOut. can to output from any pin.
Fork of Servo by
Diff: Servo.h
- Revision:
- 4:bc31309c2cf5
- Parent:
- 3:36b69a7ced07
--- a/Servo.h Thu Sep 02 17:34:43 2010 +0000 +++ b/Servo.h Thu Sep 17 09:06:58 2015 +0000 @@ -24,7 +24,7 @@ #define MBED_SERVO_H #include "mbed.h" - +#include "SoftPWM.h" /** Servo control class, based on a PwmOut * * Example: @@ -89,7 +89,7 @@ operator float(); protected: - PwmOut _pwm; + SoftPWM _pwm; float _range; float _degrees; float _p;