Press SW2 for red LED. Press SW3 for blue LED.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bentrevett
Date:
Thu Dec 31 23:16:26 2015 +0000
Parent:
0:b9aa0612f361
Child:
2:381e5197a992
Commit message:
changed LED declaration

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Dec 31 23:13:27 2015 +0000
+++ b/main.cpp	Thu Dec 31 23:16:26 2015 +0000
@@ -1,6 +1,6 @@
 #include "mbed.h"
  
-DigitalOut red(LED_RED);        
+DigitalOut red(LED1);        
 DigitalOut blue(LED3);
 DigitalIn sw2(PTC6);
  InterruptIn sw3(PTA4);