Skip to content

pinMode(x, INPUT_PULLUP) does not pull up on GPIO34 ... GPIO39 #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hcs-svn opened this issue Apr 16, 2017 · 7 comments
Closed

pinMode(x, INPUT_PULLUP) does not pull up on GPIO34 ... GPIO39 #316

hcs-svn opened this issue Apr 16, 2017 · 7 comments

Comments

@hcs-svn
Copy link

hcs-svn commented Apr 16, 2017

Tested it for all GPIOs that can be a DI. Works for all of them but not for GPIO34 ... GPIO39.
They work as input but get not pulled up. Same with INPUT_PULLDOWN.

@igrr
Copy link
Member

igrr commented Apr 16, 2017

These input-only pins don't have PU/PD circuits.

@hcs-svn
Copy link
Author

hcs-svn commented Apr 16, 2017

OK, thanks for the information.
Then it's time for me to start soldering ...

@hcs-svn hcs-svn closed this as completed Apr 16, 2017
@BarryAndrews
Copy link

Wouldn't this be something worth putting in the manual?
Bit annoying to only find this out by searching once the pin fails to work as expected.

@beegee-tokyo
Copy link
Contributor

Good idea. Will put it into my ESP32 WiKi

@beegee-tokyo
Copy link
Contributor

Ups, already there: Reserved GPIO’S

@mws-rmain
Copy link

mws-rmain commented Dec 23, 2019

I've always found it anoying that this issue is not CLEAR from the start of development. WHY are these pins even CALLED 'GPIO's, then later found to be 'INPUT ONLY'? In my opinion, these pins should have been labelled 'GPI', since 'GPIO' actually MEANS 'General Purpose Input/OUTPUT'. If the documentation lists most pins as 'GPIO#', then lists four pins as 'GPI#', it's clear to the designer that these pins are different, WITHOUT digging through document details.

@ahmed-asaleh
Copy link

Hello,
As I understand, all of the esp32 GPIO pins have internal pull-up & pull-down resistors, except GPIO 34 tell GPIO 39.
Is that correct? If yes, then how can I use these internal pull-up/down resistors? maybe like this (not sure) :
pinMode(pinNumber, INPUT_PULLUP); or pinMode(pinNumber, INPUT_PULLDOWN);
Thanks in advance ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants