Essai sur les Led

Dependencies:   mbed

Revision:
1:2ba669406814
Parent:
0:03ee02521233
--- a/main.cpp	Fri Jun 20 21:08:26 2014 +0000
+++ b/main.cpp	Fri Jun 20 21:10:56 2014 +0000
@@ -1,12 +1,15 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
 
 int main() {
     while(1) {
-        myled = 1;
+        myled1 = 1;
+        myled2 = 1;
         wait(0.5);
-        myled = 0;
+        myled1= 0;
+        myled2 = 0;
         wait(0.5);
     }
 }