I came across a bug report that said for some GPIOs, the pull-up had to be set by modifying the RTC GPIOs instead, and a fix was submitted to the IDF to make this workaround transparent for the users of ESP-IDF:
https://github.com/espressif/esp-idf/co ... 1f0b413ac4
However, nothing is working for me:
Code: Select all
gpio_pad_select_gpio(MY_GPIO);
gpio_set_direction(MY_GPIO, GPIO_MODE_DEF_INPUT);
gpio_set_pull_mode(MY_GPIO, GPIO_PULLUP_ONLY);
rtc_gpio_pullup_en(MY_GPIO);
I'm using the WROOM-32 module. The pin works fine as an output, and there is no electrical connection with the pin that could interfere.