[][src]Struct matrix_rhal::Everloop

pub struct Everloop<'a> { /* fields omitted */ }

Controls the ring of LEDS on a MATRIX device.

Methods

impl<'a> Everloop<'a>[src]

pub fn new(bus: &Bus) -> Everloop[src]

Return an instance of Everloop.

pub fn set(&self, leds: &[Rgbw])[src]

Map each RGBW to the respective MATRIX LED. LEDs not set are defaulted to black.

Example

// Set 15 LEDs to blue and the remaining to black
everloop.set(&vec![hal::Rgbw::new(0,0,255,0); 15]);

pub fn set_all(&self, color: Rgbw)[src]

Set all MATRIX LEDs to a single color

Trait Implementations

impl<'a> Debug for Everloop<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Everloop<'a>

impl<'a> Send for Everloop<'a>

impl<'a> Sync for Everloop<'a>

impl<'a> Unpin for Everloop<'a>

impl<'a> UnwindSafe for Everloop<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.