tim003 tim003
/
LV1_Grupa7_Tim003_Zadatak4
Nedim Hozić Nedžad Hasković
Revision 0:2acfb7a056c6, committed 2014-03-06
- Comitter:
- tim003
- Date:
- Thu Mar 06 18:11:17 2014 +0000
- Commit message:
- LV1 - PAI - Grupa 7 - Tim 003
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 2acfb7a056c6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 06 18:11:17 2014 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" + +DigitalOut crvena(LED1); +DigitalOut zelena(LED2); +DigitalOut plava(LED3); + +int main() { + while(1) { + crvena=0; + zelena=1; + plava=1; + wait(1); + zelena=0; + crvena=1; + plava=1; + wait(1); + plava=0; + crvena=0; + zelena=1; + wait(1); + plava=0; + crvena=1; + zelena=1; + wait(1); + plava=0; + crvena=1; + zelena=0; + wait(1); + } +}
diff -r 000000000000 -r 2acfb7a056c6 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 06 18:11:17 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file