Skip to content

Commit 3a3c0ab

Browse files
authored
Merge pull request #7 from IPdotSetAF/6-bug-example-sketch-should-use-input_pullup-instead-of-the-currently-used-input
updated samplesketch
2 parents bc16ed4 + 21184a6 commit 3a3c0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Blink/Blink.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ EZButton _ezb(1, ReadButtons, 1000, 200);
1212

1313
void setup() {
1414
//initialize pins
15-
pinMode(BTN_1_PIN, INPUT);
15+
pinMode(BTN_1_PIN, INPUT_PULLUP);
1616
pinMode(LED_BUILTIN, OUTPUT);
1717

1818
//subscribe to needed events

0 commit comments

Comments
 (0)