rajko petrovic
/
mbed_blinky
prvi prij
Fork of mbed_blinky by
Revision 19:6fd94dbef209, committed 2017-11-07
- Comitter:
- rajko
- Date:
- Tue Nov 07 10:02:45 2017 +0000
- Parent:
- 18:1fe1cb83472f
- Commit message:
- prvi proj
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1fe1cb83472f -r 6fd94dbef209 main.cpp --- a/main.cpp Thu Oct 12 04:41:05 2017 +0000 +++ b/main.cpp Tue Nov 07 10:02:45 2017 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); int main() { while(1) { - myled = 1; + myled1 = 1; + wait(0.2); + myled1 = 0; wait(0.2); - myled = 0; - wait(0.2); + + myled2 = 1; + wait(1); + myled2 = 0; + wait(1); } }