Struct embedded_simple_ui::led::PinLed
source · pub struct PinLed<P: StatefulOutputPin, C: Clock> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<P: StatefulOutputPin, C: Clock> Led<C> for PinLed<P, C>
impl<P: StatefulOutputPin, C: Clock> Led<C> for PinLed<P, C>
fn is_on(&mut self) -> bool
source§fn set_effect(&mut self, effect: LedEffect<C>)
fn set_effect(&mut self, effect: LedEffect<C>)
Sets the effect on this LED instance Read more
source§fn set_effect_duration(&mut self, dur: Milliseconds<<C as Clock>::T>)
fn set_effect_duration(&mut self, dur: Milliseconds<<C as Clock>::T>)
Sets the current effect duration on this LED instance Read more
source§fn clear_effect(&mut self)
fn clear_effect(&mut self)
Clears current the effect Read more
Auto Trait Implementations§
impl<P, C> Freeze for PinLed<P, C>
impl<P, C> RefUnwindSafe for PinLed<P, C>
impl<P, C> Send for PinLed<P, C>
impl<P, C> Sync for PinLed<P, C>
impl<P, C> Unpin for PinLed<P, C>
impl<P, C> UnwindSafe for PinLed<P, C>
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