[][src]Trait embedded_hal::digital::InputPin

pub trait InputPin {
    type Error;
    fn try_is_high(&self) -> Result<bool, Self::Error>;
fn try_is_low(&self) -> Result<bool, Self::Error>; }

Single digital input pin

Associated Types

type Error

Error type

Loading content...

Required methods

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

Is the input pin high?

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

Is the input pin low?

Loading content...

Implementors

Loading content...