pub trait InputPin: ErrorType {
// Required methods
fn is_high(&mut self) -> Result<bool, Self::Error>;
fn is_low(&mut self) -> Result<bool, Self::Error>;
}
Expand description
Single digital input pin.
pub trait InputPin: ErrorType {
// Required methods
fn is_high(&mut self) -> Result<bool, Self::Error>;
fn is_low(&mut self) -> Result<bool, Self::Error>;
}
Single digital input pin.