Nuvoton
/
NuMaker-mbed-GPIO_Interrupt
NuMaker GPIO Interrupt with Debounce Setting
Diff: main.cpp
- Revision:
- 17:707b60147ca6
- Parent:
- 15:d825021a7e5b
- Child:
- 18:a53eb3c1d7b7
diff -r 1e530d5a7f80 -r 707b60147ca6 main.cpp --- a/main.cpp Fri Jul 26 13:24:34 2019 +0800 +++ b/main.cpp Thu Oct 24 09:46:38 2019 +0000 @@ -19,6 +19,9 @@ #elif defined(TARGET_NUMAKER_PFM_M2351) InterruptIn button(SW2); DigitalOut led(LED1); +#elif defined(TARGET_NUMAKER_IOT_M263A) +InterruptIn button(PG_4); // Button1 (SW10) +DigitalOut led(LED1); #endif void flip() {