Lab 2 Part 4 - Interrupt Modified

Fork of digitalInInterrupt_sample by William Marsh

Revision:
2:071f22412cdc
Parent:
1:13e0c1956b54
Child:
3:05b6a1431a6b
diff -r 13e0c1956b54 -r 071f22412cdc main.cpp
--- a/main.cpp	Mon Jan 23 17:26:17 2017 +0000
+++ b/main.cpp	Tue Jan 24 18:31:35 2017 +0000
@@ -33,7 +33,7 @@
 
 int main() {
     button.mode(PullUp);             // Ensure button i/p has pull up
-    button.rise(&buttonCallback) ;   // Attach function to rise event
+    button.fall(&buttonCallback) ;   // Attach function to falling edge
 
     flashT.start(&flash) ; // Start the flashing thread running 
 }
\ No newline at end of file