Skip to content

Commit 3762aae

Browse files
committed
Allow STLTest to build if USER_BTN is not defined
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent bddf766 commit 3762aae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/NonReg/Basics/STLTest/STLTest.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
static uint32_t count_pressed = 0;
1414
static uint32_t random_val = 0;
1515

16+
// Check if a default user button is defined
17+
// If not then define it to pin 2, user can set an other pin.
18+
// Button have to be wired on this pin
19+
#ifndef USER_BTN
20+
#define USER_BTN 2
21+
#endif
1622
int pushButton = USER_BTN;
1723

1824
// the setup routine runs once when you press reset:

0 commit comments

Comments
 (0)