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: mbed
Revision 0:63938047af0f, committed 2020-02-17
- Comitter:
- jtho1327
- Date:
- Mon Feb 17 18:56:25 2020 +0000
- Commit message:
- test;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 63938047af0f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 17 18:56:25 2020 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include <iostream> +PwmOut servo(PTE20); +DigitalOut control(PTB0); + +int main() +{ + control=0; + servo.period(0.02); + while(1) + { + servo.pulsewidth(0.0012); + control=0; + wait(2); + servo.pulsewidth(0.0018); + control=1; + wait(2); + } +}
diff -r 000000000000 -r 63938047af0f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Feb 17 18:56:25 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file