Arduino-esp32: pinMode(x, INPUT_PULLUP) does not pull up on GPIO34 ... GPIO39

Created on 16 Apr 2017  路  7Comments  路  Source: espressif/arduino-esp32

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.

Most helpful comment

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.

All 7 comments

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

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

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.

Good idea. Will put it into my ESP32 WiKi

Ups, already there: Reserved GPIO鈥橲

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.

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 ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NickChungVietNam picture NickChungVietNam  路  3Comments

jhowkis picture jhowkis  路  3Comments

mistergreen picture mistergreen  路  4Comments

merlinschumacher picture merlinschumacher  路  4Comments

0x1abin picture 0x1abin  路  3Comments