Function esp_idf_hal::sys::gpio_set_level
source ยท pub unsafe extern "C" fn gpio_set_level(
gpio_num: i32,
level: u32,
) -> i32
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