pub struct Ws2812<'a, P: Pin> { /* private fields */ }Expand description
The single-wire, tri-color (RGB) LED.
write_frame is provided by the chip and sends one 24-bit GRB frame.
Implementations§
Auto Trait Implementations§
impl<'a, P> !Freeze for Ws2812<'a, P>
impl<'a, P> !RefUnwindSafe for Ws2812<'a, P>
impl<'a, P> !Sync for Ws2812<'a, P>
impl<'a, P> Send for Ws2812<'a, P>
impl<'a, P> Unpin for Ws2812<'a, P>
impl<'a, P> UnsafeUnpin for Ws2812<'a, P>
impl<'a, P> UnwindSafe for Ws2812<'a, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more