Function riot_sys::gpio_read

source ·
pub unsafe extern "C" fn gpio_read(pin: gpio_t) -> c_int
Expand description

@brief Get the current value of the given pin

@param[in] pin the pin to read

@return 0 when pin is LOW @return >0 for HIGH