pub unsafe extern "C" fn gpio_set_level(
    gpio_num: gpio_num_t,
    level: u32
) -> esp_err_t
Expand description

@brief GPIO set output level

@note This function is allowed to be executed when Cache is disabled within ISR context, by enabling CONFIG_GPIO_CTRL_FUNC_IN_IRAM

@param gpio_num GPIO number. If you want to set the output level of e.g. GPIO16, gpio_num should be GPIO_NUM_16 (16); @param level Output level. 0: low ; 1: high

@return - ESP_OK Success - ESP_ERR_INVALID_ARG GPIO number error