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.
Diff: servo.cpp
- Revision:
- 15:1eed07b5a5ba
- Parent:
- 11:362594298828
- Child:
- 17:fc23cf904932
--- a/servo.cpp Mon Jan 14 05:09:32 2019 +0000 +++ b/servo.cpp Mon Jan 14 07:00:31 2019 +0000 @@ -1,7 +1,7 @@ #include "servo.h" #include "tempSnsr.h" -PwmOut servo(p24); +PwmOut servo(p23); int curDutyCycle = 1500; //1500 corresponds to zero degrees with a change of 10 changing the value by one degree bool curDirection = 0; //the direction the servo moved last. the actual direction doesn't matter, we just continue or turn around
