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

Single digital input pin

Required Methods§

source

fn is_high(&self) -> Result<bool, Self::Error>

Is the input pin high?

source

fn is_low(&self) -> Result<bool, Self::Error>

Is the input pin low?

Implementations on Foreign Types§

source§

impl<T: InputPin + ?Sized> InputPin for &T

source§

fn is_high(&self) -> Result<bool, Self::Error>

source§

fn is_low(&self) -> Result<bool, Self::Error>

Implementors§