Trait embedded_hal::digital::v2::InputPin [−][src]
pub trait InputPin {
type Error;
fn is_high(&self) -> Result<bool, Self::Error>;
fn is_low(&self) -> Result<bool, Self::Error>;
}Single digital input pin
This trait is available if embedded-hal is built with the "unproven" feature.
Associated Types
Loading content...Required methods
fn is_high(&self) -> Result<bool, Self::Error>[src]
Is the input pin high?
fn is_low(&self) -> Result<bool, Self::Error>[src]
Is the input pin low?
Implementors
Loading content...