led v3

Dependents:   robot_final

Fork of LED by Projet robot

Files at this revision

API Documentation at this revision

Comitter:
fab16
Date:
Thu Feb 09 16:14:19 2017 +0000
Parent:
2:d08b46f9050c
Commit message:
V3

Changed in this revision

LED.cpp Show annotated file Show diff for this revision Revisions of this file
LED.h Show annotated file Show diff for this revision Revisions of this file
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
diff -r d08b46f9050c -r ca5c598be185 LED.h
--- a/LED.h	Thu Feb 09 14:35:40 2017 +0000
+++ b/LED.h	Thu Feb 09 16:14:19 2017 +0000
@@ -8,4 +8,5 @@
     void K2000(float duree);
     void K3000(float duree);
     void K4000(float duree);
+    void LED_desynchrone(float duree);
 };
\ No newline at end of file