ESP32 PullUp- PullDown

ats3788
Posts: 27
Joined: Thu Feb 01, 2018 10:12 am

ESP32 PullUp- PullDown

Postby ats3788 » Sat Jul 06, 2019 3:15 pm

Hallo
How can I switch on the PullUp- PullDown Resistors in the Arduino IDE

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

Re: ESP32 PullUp- PullDown

Postby fivdiAtESP32 » Sun Jul 07, 2019 7:48 am

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:

Code: Select all

pinMode(17, INPUT_PULLUP);
To enable the pulldown resistor for GPIO17 do this:

Code: Select all

pinMode(17, INPUT_PULLDOWN);
Note that not all GPIOs on an ESP32 have pullup and pulldown resistors.

ats3788
Posts: 27
Joined: Thu Feb 01, 2018 10:12 am

Re: ESP32 PullUp- PullDown

Postby ats3788 » Mon Jul 08, 2019 12:16 pm

Thank you very much !!!!!

Who is online

Users browsing this forum: No registered users and 22 guests