[][src]Struct ws2812_timer_delay::Ws2812

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

Methods

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

pub fn new(timer: TIMER, pin: PIN) -> Ws2812<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 = ()

type Color = RGB8

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

Write all the items of an iterator to a ws2812 strip

Auto Trait Implementations

impl<TIMER, PIN> Unpin for Ws2812<TIMER, PIN> where
    PIN: Unpin,
    TIMER: Unpin

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

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

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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.

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

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

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