8000 Merge pull request #10730 from leochen4891/patch-1 · bsideup/arduino-esp32@6005b15 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6005b15

Browse files
authored
Merge pull request espressif#10730 from leochen4891/patch-1
Use INPUT_PULLUP instead of INPUT
2 parents 64b62dc + 2c7b76a commit 6005b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/Timer/RepeatTimer/RepeatTimer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
Serial.begin(115200);
3434

3535
// Set BTN_STOP_ALARM to input mode
36-
pinMode(BTN_STOP_ALARM, INPUT);
36+
pinMode(BTN_STOP_ALARM, INPUT_PULLUP);
3737

3838
// Create semaphore to inform us when the timer has fired
3939
timerSemaphore = xSemaphoreCreateBinary();

0 commit comments

Comments
 (0)
0