[][src]Trait embedded_hal::digital::OutputPin

pub trait OutputPin {
    type Error;
    fn try_set_low(&mut self) -> Result<(), Self::Error>;
fn try_set_high(&mut self) -> Result<(), Self::Error>; }

Single digital push-pull output pin

Associated Types

type Error

Error type

Loading content...

Required methods

fn try_set_low(&mut self) -> Result<(), Self::Error>

Drives the pin low

NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources

fn try_set_high(&mut self) -> Result<(), Self::Error>

Drives the pin high

NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources

Loading content...

Implementors

Loading content...