Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: wakeup_button.cpp
- Revision:
- 17:0f81445cbbf0
- Parent:
- 10:d2e2c79389e1
- Child:
- 18:e236110ce841
--- a/wakeup_button.cpp Fri Feb 21 11:19:30 2020 +0800 +++ b/wakeup_button.cpp Fri Feb 21 17:22:00 2020 +0800 @@ -1,7 +1,12 @@ #include "mbed.h" #include "wakeup.h" -#if defined(TARGET_NUMAKER_PFM_NUC472) +#if defined(TARGET_NUMAKER_PFM_NANO130) +// SW +#define BUTTON1 SW1 +#define BUTTON2 SW2 + +#elif defined(TARGET_NUMAKER_PFM_NUC472) // SW #define BUTTON1 SW1 #define BUTTON2 SW2 @@ -16,10 +21,10 @@ #define BUTTON1 SW2 #define BUTTON2 SW3 -#elif defined(TARGET_NUMAKER_PFM_NANO130) +#elif defined(TARGET_NUMAKER_IOT_M263A) // SW -#define BUTTON1 SW1 -#define BUTTON2 SW2 +#define BUTTON1 SW2 +#define BUTTON2 SW3 #endif