[][src]Struct segment_display::SegmentDisplay

pub struct SegmentDisplay<SPI, PIN> { /* fields omitted */ }

Methods

impl<SPI, PIN> SegmentDisplay<SPI, PIN> where
    SPI: Write<u8>,
    PIN: OutputPin
[src]

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]

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

impl<SPI, PIN> Sync for SegmentDisplay<SPI, PIN> where
    PIN: Sync,
    SPI: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]