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.
Dependencies: DebounceIn mbed
Revision 1:c4f9f35f4a49, committed 2015-07-13
- Comitter:
- figlax
- Date:
- Mon Jul 13 23:18:00 2015 +0000
- Parent:
- 0:fd99ff1f3a8b
- Commit message:
- Should be PWM. Not sure how recent.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fd99ff1f3a8b -r c4f9f35f4a49 main.cpp --- a/main.cpp Tue Jun 09 22:44:59 2015 +0000 +++ b/main.cpp Mon Jul 13 23:18:00 2015 +0000 @@ -38,13 +38,14 @@ if (swiRe==0){ indicFr = 0; indicRe = 1; + myled = 0; motor.write(0.25f); - wait(.1); + wait(.2); motor.write(0.35f); - wait(.1); + wait(.2); motor.write(0.45f); - wait(.1); + wait(.2); motor.write(0.55f); wait(.1); motor.write(0.65f); @@ -56,7 +57,8 @@ motor.write(0.95f); wait(.1); motor.write(1.00f); - } + } + while (swiRe==0){ indicFr = 0; indicRe = 1;