EzSBC2_blink_program

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kizosgr
Date:
Sun Apr 12 23:25:38 2015 +0000
Parent:
0:b08cd12df913
Commit message:
EzSBC2 blink at 2 LEDs P1_15 and P1_22

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Apr 12 23:14:01 2015 +0000
+++ b/main.cpp	Sun Apr 12 23:25:38 2015 +0000
@@ -1,9 +1,9 @@
 #include "mbed.h"
  
-// WiFi DipCortex has 1 LED shared with the button on P0_1
-DigitalOut Led(P1_15);
+// EzSBC2 has 2 LEDs P1_15 and P1_16
+
+DigitalOut Led1(P1_15);
  
-// DipCortex has 2 LEDs P0_1 and P1_22
 DigitalOut Led2(P1_16);
  
 int main()
@@ -12,7 +12,7 @@
     {
         Led2 = !Led2;
         wait_ms(250);
-        Led = !Led;
+        Led1 = !Led1;
         wait_ms(250);
     } 
     }
\ No newline at end of file