Function esp_idf_sys::gpio_set_pull_mode
source ยท pub unsafe extern "C" fn gpio_set_pull_mode(
gpio_num: gpio_num_t,
pull: gpio_pull_mode_t,
) -> esp_err_t
Expand description
@brief Configure GPIO pull-up/pull-down resistors
@note ESP32: Only pins that support both input & output have integrated pull-up and pull-down resistors. Input-only GPIOs 34-39 do not.
@param gpio_num GPIO number. If you want to set pull up or down mode for e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16); @param pull GPIO pull up/down mode.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG : Parameter error