Trait led::rgb::Common

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

The polarity of the LED; either anode or cathode.

Required Methods§

source

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

Enables the pin output.

source

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

Disables the pin output.

Implementors§