[][src]Trait led::rgb::RGB

pub trait RGB: LED<Input = Color> { }

An RGB LED; either common anode or common cathode.

Examples

use led::rgb::{Color, CommonAnodeLED, CommonCathodeLED, RGB};

let mut leds: [&mut RGB; 2] = [
    &mut CommonAnodeLED::new(r1, g1, b1),
    &mut CommonCathodeLED::new(r2, g2, b2),
];

for led in leds.iter_mut() {
    led.set(Color::Red)
}

Implementors

impl<L> RGB for L where
    L: LED<Input = Color>, 
[src]

Loading content...