pub struct LED<C, P> { /* private fields */ }
Expand description
An RGB LED
The RGB LED is represented by three owned instances of embedded_hal::digital::v2::OutputPin
and a polarity (common anode or common cathode). Because the outputs are binary, only eight
colors can be presented: primary colors, secondary colors, white, and black.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, P> RefUnwindSafe for LED<C, P>where C: RefUnwindSafe, P: RefUnwindSafe,
impl<C, P> Send for LED<C, P>where C: Send, P: Send,
impl<C, P> Sync for LED<C, P>where C: Sync, P: Sync,
impl<C, P> Unpin for LED<C, P>where C: Unpin, P: Unpin,
impl<C, P> UnwindSafe for LED<C, P>where C: UnwindSafe, P: UnwindSafe,
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