led v3
Fork of LED by
Diff: LED.cpp
- Revision:
- 3:ca5c598be185
- Parent:
- 2:d08b46f9050c
diff -r d08b46f9050c -r ca5c598be185 LED.cpp --- a/LED.cpp Thu Feb 09 14:35:40 2017 +0000 +++ b/LED.cpp Thu Feb 09 16:14:19 2017 +0000 @@ -72,4 +72,18 @@ myled3 = 0; wait(duree); myled4 = 0; + } + + void LED::LED_desynchrone(float duree){ + myled4 = 1; + myled1 = 1; + wait(duree); + myled4 = 0; + myled1 = 0; + wait(duree); + myled2 = 1; + myled3 = 1; + wait(duree); + myled2 = 0; + myled3 = 0; } \ No newline at end of file