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:93924d255208, committed 2014-03-06
- Comitter:
- tim004
- Date:
- Thu Mar 06 18:06:45 2014 +0000
- Commit message:
- LV1-PAI-grupa7-tim004-zadatak4
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 93924d255208 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 06 18:06:45 2014 +0000 @@ -0,0 +1,53 @@ +#include "mbed.h" + +DigitalOut crvena(LED1); +DigitalOut zelena(LED2); +DigitalOut plava(LED3); + +int main() { + float interval=1.0; + while(1) { + + zelena=1; + plava=1; + crvena = 0; + wait(interval); + crvena = 1; + + + + zelena=0; + plava=1; + crvena = 0; + wait(interval); + crvena = 1; + + + + + crvena=1; + plava=1; + zelena = 0; + wait(interval); + zelena = 1; + + + crvena=1; + plava=0; + zelena = 0; + wait(interval); + zelena = 1; + + + crvena = 1; + zelena=1; + plava=0; + wait(interval); + plava = 1; + + + + + + } +}
diff -r 000000000000 -r 93924d255208 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 06 18:06:45 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file