pub struct SegmentDisplay<SPI, PIN> { /* private fields */ }
Implementations§
Source§impl<SPI, PIN> SegmentDisplay<SPI, PIN>
impl<SPI, PIN> SegmentDisplay<SPI, PIN>
Sourcepub fn release(self) -> (SPI, PIN)
pub fn release(self) -> (SPI, PIN)
Release the SegmentDisplay and the resources
Sourcepub fn refresh(&mut self) -> Result<(), SPI::Error>
pub fn refresh(&mut self) -> Result<(), SPI::Error>
Refresh the display. Needs to be called periodically with a sufficientlty hight frequenzy otherwise the display will flicker.
pub fn refresh_with_delay<DELAY>( &mut self, delay: &mut DELAY, ) -> Result<(), SPI::Error>
Sourcepub fn write_chars(&mut self, buf: [char; 4])
pub fn write_chars(&mut self, buf: [char; 4])
Write characters to the display
Sourcepub fn write_number(&mut self, num: usize)
pub fn write_number(&mut self, num: usize)
Write a number to the display
Auto Trait Implementations§
impl<SPI, PIN> Freeze for SegmentDisplay<SPI, PIN>
impl<SPI, PIN> RefUnwindSafe for SegmentDisplay<SPI, PIN>where
SPI: RefUnwindSafe,
PIN: RefUnwindSafe,
impl<SPI, PIN> Send for SegmentDisplay<SPI, PIN>
impl<SPI, PIN> Sync for SegmentDisplay<SPI, PIN>
impl<SPI, PIN> Unpin for SegmentDisplay<SPI, PIN>
impl<SPI, PIN> UnwindSafe for SegmentDisplay<SPI, PIN>where
SPI: UnwindSafe,
PIN: 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