pub struct TM1637Builder<CLK, DIO, DELAY> { /* private fields */ }
Available on crate feature
blocking
only.Expand description
TM1637
7-segment display builder.
Implementations§
source§impl<CLK, DIO, DELAY> TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> TM1637Builder<CLK, DIO, DELAY>
sourcepub fn new(clk: CLK, dio: DIO, delay: DELAY) -> Self
pub fn new(clk: CLK, dio: DIO, delay: DELAY) -> Self
Create a new TM1637Builder
instance.
sourcepub fn brightness(self, brightness: Brightness) -> Self
pub fn brightness(self, brightness: Brightness) -> Self
Set the brightness level.
sourcepub fn num_positions(self, num_positions: u8) -> Self
pub fn num_positions(self, num_positions: u8) -> Self
Set the number of positions on the display.
Trait Implementations§
source§impl<CLK: Clone, DIO: Clone, DELAY: Clone> Clone for TM1637Builder<CLK, DIO, DELAY>
impl<CLK: Clone, DIO: Clone, DELAY: Clone> Clone for TM1637Builder<CLK, DIO, DELAY>
source§fn clone(&self) -> TM1637Builder<CLK, DIO, DELAY>
fn clone(&self) -> TM1637Builder<CLK, DIO, DELAY>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<CLK, DIO, DELAY> Freeze for TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> RefUnwindSafe for TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> Send for TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> Sync for TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> Unpin for TM1637Builder<CLK, DIO, DELAY>
impl<CLK, DIO, DELAY> UnwindSafe for TM1637Builder<CLK, DIO, DELAY>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)