Pull-up and pull-down resistors
Compare default input states and button behavior with pull-up and pull-down wiring.
3.3V
GND
10k
GPIO4HIGH
3.3 V
ModePull-up
ButtonReleased
GPIO voltage3.3 V
digitalRead()HIGH
Compare default input states and button behavior with pull-up and pull-down wiring.