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.
Revision 0:e7e52f0f5c78, committed 2014-03-03
- Comitter:
- tim004
- Date:
- Mon Mar 03 17:37:10 2014 +0000
- Commit message:
- LV1-PAI-Grupa 4- Tim004
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 03 17:37:10 2014 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + double x=1; + double y=1; + while(1) { + while(x<1.9 && y>=0.1){ + myled = 1; + wait(x); + x=x+0.03; + myled = 0; + wait(y); + y=y-0.03;} + while(x>=0.1 && y<1.9){ + myled = 1; + wait(x); + x=x-0.03; + myled = 0; + wait(y); + y=y+0.03;} + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 03 17:37:10 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file