pub struct Demo<CLK, DIO, DELAY, ERR>{ /* private fields */ }
Available on crate features
demo
and blocking
only.Expand description
Blocking demo.
Implementations§
source§impl<CLK, DIO, DELAY, ERR> Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> Demo<CLK, DIO, DELAY, ERR>
sourcepub fn new(
device: TM1637<CLK, DIO, DELAY>,
delay: DELAY,
moving_delay_ms: u32,
) -> Self
pub fn new( device: TM1637<CLK, DIO, DELAY>, delay: DELAY, moving_delay_ms: u32, ) -> Self
Create a new demo instance.
sourcepub fn moving_segments(&mut self) -> Result<(), ERR>
pub fn moving_segments(&mut self) -> Result<(), ERR>
Move all segments across the display.
sourcepub fn moving_digits(&mut self) -> Result<(), ERR>
pub fn moving_digits(&mut self) -> Result<(), ERR>
Move all digits across the display.
sourcepub fn moving_up_chars(&mut self) -> Result<(), ERR>
pub fn moving_up_chars(&mut self) -> Result<(), ERR>
Move all uppercase characters across the display.
sourcepub fn moving_lo_chars(&mut self) -> Result<(), ERR>
pub fn moving_lo_chars(&mut self) -> Result<(), ERR>
Move all lowercase characters across the display.
sourcepub fn moving_special_chars(&mut self) -> Result<(), ERR>
pub fn moving_special_chars(&mut self) -> Result<(), ERR>
Move all special characters across the display.
sourcepub fn on_off(&mut self, cycles: u32, on_off_delay_ms: u32) -> Result<(), ERR>
pub fn on_off(&mut self, cycles: u32, on_off_delay_ms: u32) -> Result<(), ERR>
Turn the display on and off.
Auto Trait Implementations§
impl<CLK, DIO, DELAY, ERR> Freeze for Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> RefUnwindSafe for Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> Send for Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> Sync for Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> Unpin for Demo<CLK, DIO, DELAY, ERR>
impl<CLK, DIO, DELAY, ERR> UnwindSafe for Demo<CLK, DIO, DELAY, ERR>
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