Trait led::mono::Common

source ·
pub trait Common {
    // Required methods
    fn enable<P: OutputPin>(pin: &mut P) -> Result<(), P::Error>;
    fn disable<P: OutputPin>(pin: &mut P) -> Result<(), P::Error>;
}
Expand description

The polarity of the LED; either anode or cathode.

Required Methods§

source

fn enable<P: OutputPin>(pin: &mut P) -> Result<(), P::Error>

Enables the pin output.

source

fn disable<P: OutputPin>(pin: &mut P) -> Result<(), P::Error>

Disables the pin output.

Implementors§