[−][src]Struct segment_display::SegmentDisplay
Methods
impl<SPI, PIN> SegmentDisplay<SPI, PIN> where
SPI: Write<u8>,
PIN: OutputPin,
[src]
SPI: Write<u8>,
PIN: OutputPin,
pub fn new(spi: SPI, latch_pin: PIN) -> Self
[src]
Create a new SegmentDisplay
pub fn release(self) -> (SPI, PIN)
[src]
Release the SegmentDisplay and the resources
pub fn refresh(&mut self) -> Result<(), SPI::Error>
[src]
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> where
DELAY: DelayUs<u16>,
[src]
&mut self,
delay: &mut DELAY
) -> Result<(), SPI::Error> where
DELAY: DelayUs<u16>,
pub fn write_chars(&mut self, buf: [char; 4])
[src]
Write characters to the display
pub fn write_str(&mut self, s: &str)
[src]
Write a string to the display
pub fn write_number(&mut self, num: usize)
[src]
Write a number to the display
Auto Trait Implementations
impl<SPI, PIN> Send for SegmentDisplay<SPI, PIN> where
PIN: Send,
SPI: Send,
PIN: Send,
SPI: Send,
impl<SPI, PIN> Sync for SegmentDisplay<SPI, PIN> where
PIN: Sync,
SPI: Sync,
PIN: Sync,
SPI: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,