[][src]Struct ws2812_timer_delay::Ws2812

pub struct Ws2812<'a, TIMER, PIN> { /* fields omitted */ }

Methods

impl<'a, TIMER, PIN> Ws2812<'a, TIMER, PIN> where
    TIMER: CountDown + Periodic,
    PIN: OutputPin
[src]

pub fn new(timer: TIMER, pin: &'a mut PIN) -> Ws2812<'a, TIMER, PIN>[src]

The timer has to already run at with a frequency of 3 MHz

Trait Implementations

impl<TIMER, PIN, '_> SmartLedsWrite for Ws2812<'_, TIMER, PIN> where
    TIMER: CountDown + Periodic,
    PIN: OutputPin
[src]

type Error = ()

fn write<T>(&mut self, iterator: T) -> Result<(), ()> where
    T: Iterator<Item = Color>, 
[src]

Write all the items of an iterator to a ws2812 strip

Auto Trait Implementations

impl<'a, TIMER, PIN> Send for Ws2812<'a, TIMER, PIN> where
    PIN: Send,
    TIMER: Send

impl<'a, TIMER, PIN> Sync for Ws2812<'a, TIMER, PIN> where
    PIN: Sync,
    TIMER: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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