Trait led::LED

source ·
pub trait LED {
    type Input;

    // Required method
    fn set(&mut self, value: Self::Input);
}
Expand description

Represents an LED that can be set to several states

Required Associated Types§

Required Methods§

source

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

Sets the LED to the specified state.

Implementors§

source§

impl<C, P> LED for led::mono::LED<C, P>where C: Common, P: OutputPin,

§

type Input = State

source§

impl<C, R, G, B, E> LED for led::rgb::LED<C, R, G, B, E>where C: Common, R: OutputPin<Error = E>, G: OutputPin<Error = E>, B: OutputPin<Error = E>,

§

type Input = Color