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_HelloWorld by
Revision 5:04e18a0d9dfb, committed 2016-05-28
- Comitter:
- Maggie17
- Date:
- Sat May 28 09:19:26 2016 +0000
- Parent:
- 4:0b1d0b30c936
- Commit message:
- modify
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0b1d0b30c936 -r 04e18a0d9dfb main.cpp --- a/main.cpp Sat May 28 08:46:38 2016 +0000 +++ b/main.cpp Sat May 28 09:19:26 2016 +0000 @@ -6,11 +6,9 @@ // this code runs when the microcontroller starts up int main() { for(float p=0; p<1.0; p += 0.1) { - - // YOUR CODE HERE: start the Servo myservo = p; wait(0.2); - // CHALLENGE: make code run between 0-1 only! + // YOUR CODE HERE : make code run between 0-1 only! } }