[][src]Trait led::rgb::Common

pub trait Common {
    fn enable<P: OutputPin>(pin: &mut P);
fn disable<P: OutputPin>(pin: &mut P); }

The polarity of the LED; either anode or cathode.

Required methods

fn enable<P: OutputPin>(pin: &mut P)

Enables the pin output.

fn disable<P: OutputPin>(pin: &mut P)

Disables the pin output.

Loading content...

Implementors

impl Common for CommonAnode[src]

impl Common for CommonCathode[src]

Loading content...