pub unsafe extern "C" fn gpio_set_direction(
    gpio_num: gpio_num_t,
    mode: gpio_mode_t
) -> esp_err_t
Expand description

@brief GPIO set direction

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