pub trait InputPin {
type Error;
// Required methods
fn is_high(&self) -> Result<bool, Self::Error>;
fn is_low(&self) -> Result<bool, Self::Error>;
}Expand description
Single digital input pin
This trait is available if embedded-hal is built with the "unproven" feature.
Required Associated Types§
Required Methods§
Implementors§
Source§impl<T> InputPin for Twhere
T: InputPin,
Implementation of fallible v2::InputPin for v1::InputPin digital traits
impl<T> InputPin for Twhere
T: InputPin,
Implementation of fallible v2::InputPin for v1::InputPin digital traits