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: main.cpp
- Revision:
- 3:c9df852ad9ac
- Parent:
- 2:7f4be54c7257
- Child:
- 4:48d390356fba
diff -r 7f4be54c7257 -r c9df852ad9ac main.cpp --- a/main.cpp Fri Feb 16 19:30:19 2018 +0000 +++ b/main.cpp Wed Feb 21 11:55:29 2018 +0000 @@ -2,7 +2,11 @@ #include "pwm.h" int main(){ + motorSetup(); +while(1){ + if(joystickCenter == 1){ + wait(0.5); buggyGoF(); wait(2); buggyGoLeft(); @@ -10,5 +14,7 @@ buggyGoRight(); wait(2); buggyStop(); - while(1); + } } + +} \ No newline at end of file