Function mockup_hal::gpio::read
[−]
[src]
pub fn read(_pin: &Pin) -> bool
Read digital value from Pin
In the mockup version, it simply returns a random bool.
Examples
use mockup_hal::gpio::{init, read, Pin, Mode}; init(&Pin::P12, &Mode::Input); let high = read(&Pin::P12);