riot_sys

Function gpio_read

Source
pub unsafe extern "C" fn gpio_read(pin: gpio_t) -> bool
Expand description

@brief Get the current value of the given pin

@param[in] pin the pin to read

@retval false pin is LOW @retval true pin is HIGH