![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
prvi prij
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 19:6fd94dbef209
- Parent:
- 4:81cea7a352b0
--- 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); } }