Skip to content

Commit 6005b15

Browse files
authored
Merge pull request #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

+1-1
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)