pub struct Led<const P: char, const N: u8> { /* private fields */ }Expand description
LED abstraction that remembers its active level and last known state.
Implementations§
Source§impl<const P: char, const N: u8> Led<P, N>
impl<const P: char, const N: u8> Led<P, N>
Source§impl<const P: char, const N: u8> Led<P, N>
impl<const P: char, const N: u8> Led<P, N>
pub fn active_high<MODE>(pin: Pin<P, N, MODE>) -> Self
pub fn active_low<MODE>(pin: Pin<P, N, MODE>) -> Self
Auto Trait Implementations§
impl<const P: char, const N: u8> Freeze for Led<P, N>
impl<const P: char, const N: u8> RefUnwindSafe for Led<P, N>
impl<const P: char, const N: u8> Send for Led<P, N>
impl<const P: char, const N: u8> Sync for Led<P, N>
impl<const P: char, const N: u8> Unpin for Led<P, N>
impl<const P: char, const N: u8> UnwindSafe for Led<P, N>
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