pub struct Input<const PIN: u8>;
Expand description
GPIO input driver
Implementations§
Source§impl<const PIN: u8> Input<PIN>
impl<const PIN: u8> Input<PIN>
Sourcepub fn input_state(&self) -> bool
pub fn input_state(&self) -> bool
Read the input state/level of the pin.