xxx

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sajjadathar
Date:
Tue Feb 20 06:01:27 2018 +0000
Parent:
0:3b758e1149dd
Commit message:
first_publish

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3b758e1149dd -r bb1ab65c423b main.cpp
--- a/main.cpp	Tue Feb 20 05:57:00 2018 +0000
+++ b/main.cpp	Tue Feb 20 06:01:27 2018 +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 = 2;
         wait(0.2);
-        myled = 0;
+        myled1 = 0;
+        myled2 = 0;
         wait(0.2);
     }
 }