InterruptIn program for mbed NXP LPC11U24 beta

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Thu Oct 20 11:12:10 2011 +0000
Parent:
0:8ee2824fa192
Child:
2:39371bbdf5a6
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 20 11:07:07 2011 +0000
+++ b/main.cpp	Thu Oct 20 11:12:10 2011 +0000
@@ -4,9 +4,7 @@
 InterruptIn din(p14);
 
 void int_handler () {
-    led3 = 1;
-    wait(0.25);
-    led3 = 0;
+    led3 = !led3;
 }
 
 int main () {