LED hello world

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
SyahmiShah
Date:
Wed Sep 27 12:34:14 2017 +0000
Parent:
1:03c191369089
Child:
3:333d22bc52e9
Commit message:
added led2;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jan 01 20:57:57 2012 +0000
+++ b/main.cpp	Wed Sep 27 12:34:14 2017 +0000
@@ -1,12 +1,15 @@
 #include "mbed.h"
 
 DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
 
 int main() {
     while(1) {
         myled = 1;
+        myled2 = 0;
         wait(0.2);
         myled = 0;
+        myled2 = 1;
         wait(0.2);
     }
 }