Essai sur les Led

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Mbochud
Date:
Fri Jun 20 21:10:56 2014 +0000
Parent:
0:03ee02521233
Commit message:
Ajout Led2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
     }
 }