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
GPIO feature: Add gpio_get_direction() and gpio_get_pull_mode() (IDFGH-10987) #12176
Comments
@songruo |
@IhorNehrutsa If I introduce a dump API that could dump out all information on the requested IO, including input_en = 0/1, output_en = 0/1, pullup_en = 0/1, pulldown_en = 0/1, func_sel, signal_connected, etc. together, instead of separate APIs for every characteristic. Will it work for you? |
@songruo Yes, perfect. I need this feature in v5.0.2 ESP-IDF and later. |
@songruo Maybe make |
@songruo Is any progress ? |
@IhorNehrutsa It has been merged to master, please wait for its sync to Github. However, we are not considering backporting the new feature to previous IDF versions. You could help yourself to pick the commit! |
It is useful to have functions that return the current setting of a pin:
1) getter
like the setter:
https://github.com/espressif/esp-idf/blob/82cceabc6e6a0a2d8c40e2249bc59917cc5e577a/components/driver/gpio/include/driver/gpio.h#L169C11-L169C29
2) getter
like the setter:
https://github.com/espressif/esp-idf/blob/82cceabc6e6a0a2d8c40e2249bc59917cc5e577a/components/driver/gpio/include/driver/gpio.h#L184C11-L184C29
The text was updated successfully, but these errors were encountered: