components

Module led

Source
Expand description

Components for collections of LEDs.

§Usage

let led = components::led::LedsComponent::new().finalize(components::led_component_static!(
    kernel::hil::led::LedLow<'static, sam4l::gpio::GPIOPin>,
    LedLow::new(&sam4l::gpio::PORT[LED_RED_PIN]),
    LedLow::new(&sam4l::gpio::PORT[LED_GREEN_PIN]),
    LedLow::new(&sam4l::gpio::PORT[LED_BLUE_PIN]),
));

Structs§

Type Aliases§