Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Servo by
Revision 4:bc31309c2cf5, committed 2015-09-17
- Comitter:
- WAT34
- Date:
- Thu Sep 17 09:06:58 2015 +0000
- Parent:
- 3:36b69a7ced07
- Commit message:
- can to output from any pin.
Changed in this revision
Servo.cpp | Show annotated file Show diff for this revision Revisions of this file |
Servo.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 36b69a7ced07 -r bc31309c2cf5 Servo.cpp --- a/Servo.cpp Thu Sep 02 17:34:43 2010 +0000 +++ b/Servo.cpp Thu Sep 17 09:06:58 2015 +0000 @@ -23,7 +23,7 @@ #include "Servo.h" #include "mbed.h" - +#include "SoftPWM.h" static float clamp(float value, float min, float max) { if(value < min) { return min;
diff -r 36b69a7ced07 -r bc31309c2cf5 Servo.h --- 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;