Skip to content

Commit 0ee07d1

Browse files
committed
Define default USER_BTN if needed
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 666be6d commit 0ee07d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/ExternalWakeup/ExternalWakeup.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
volatile int repetitions = 1;
2020

2121
// Pin used to trigger a wakeup
22+
#ifndef USER_BTN
23+
#define USER_BTN SYS_WKUP1
24+
#endif
25+
2226
const int pin = USER_BTN;
2327

2428
void setup() {

0 commit comments

Comments
 (0)