[][src]Trait led::LED

pub trait LED {
    type Input;
    fn set(&mut self, value: Self::Input);
}

Represents an LED that can be set to several states

Associated Types

type Input

Loading content...

Required methods

fn set(&mut self, value: Self::Input)

Sets the LED to the specified state.

Loading content...

Implementors

impl<C, R, G, B> LED for LED<C, R, G, B> where
    C: Common,
    R: OutputPin,
    G: OutputPin,
    B: OutputPin
[src]

type Input = Color

fn set(&mut self, color: Color)[src]

Sets the RGB LED to the specified color.

Loading content...