Function esp_idf_svc::hal::sys::gpio_sleep_set_pull_mode
source ยท pub unsafe extern "C" fn gpio_sleep_set_pull_mode(
gpio_num: i32,
pull: u32,
) -> i32
Expand description
@brief Configure GPIO pull-up/pull-down resistors at sleep
@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