Function esp_idf_svc::hal::sys::gpio_sleep_set_direction
source ยท pub unsafe extern "C" fn gpio_sleep_set_direction(
gpio_num: i32,
mode: u32,
) -> i32
Expand description
@brief GPIO set direction at sleep
Configure GPIO direction,such as output_only,input_only,output_and_input
@param gpio_num Configure GPIO pins number, it should be GPIO number. If you want to set direction of e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16); @param mode GPIO direction
@return - ESP_OK Success - ESP_ERR_INVALID_ARG GPIO error