Hallo
How can I switch on the PullUp- PullDown Resistors in the Arduino IDE
ESP32 PullUp- PullDown
-
- Posts: 47
- Joined: Thu Dec 20, 2018 9:47 am
Re: ESP32 PullUp- PullDown
When calling the pinMode function specify mode INPUT_PULLUP to enable the internal pullup resistor or specify mode INPUT_PULLDOWN to enable the internal pulldown resistor.
For example, to enable the pullup resistor for GPIO17 do this:
To enable the pulldown resistor for GPIO17 do this:
Note that not all GPIOs on an ESP32 have pullup and pulldown resistors.
For example, to enable the pullup resistor for GPIO17 do this:
Code: Select all
pinMode(17, INPUT_PULLUP);
Code: Select all
pinMode(17, INPUT_PULLDOWN);
Re: ESP32 PullUp- PullDown
Thank you very much !!!!!
Who is online
Users browsing this forum: No registered users and 20 guests