NuMaker GPIO Interrupt with Debounce Setting

Revision:
6:b3369ce1a600
Parent:
5:b9b7cd06aaf0
Child:
8:a479ab0a14ef
--- a/main.cpp	Thu Dec 22 14:57:43 2016 +0800
+++ b/main.cpp	Thu May 04 14:28:12 2017 +0800
@@ -1,11 +1,11 @@
-// NuMaker-PFM-NUC472 : GPIO interrupt to set led on/off
+// GPIO interrupt to set led on/off
 #include "mbed.h"
 #if defined(TARGET_NUMAKER_PFM_NUC472)
 InterruptIn button(SW1);    // Button SW1
-DigitalOut led(LED1);       // flashing LED1(rgbled1)
+DigitalOut led(LED1);       // Flash LED1
 #elif defined(TARGET_NUMAKER_PFM_M453)
-InterruptIn button(SW1);    // Button SW1
-DigitalOut led(LED1);       // flashing LED1(rgbled1)
+InterruptIn button(SW2);    // Button SW2
+DigitalOut led(LED1);       // Flash LED1
 #endif
 
 void flip() {