[][src]Struct seven_segment::SevenSegment

pub struct SevenSegment<A, B, C, D, E, F, G, Common> { /* fields omitted */ }

Represents 7-segment display.

This struct provides you a method to show a value on the 7-segment display by setting the appropriate pins high or low.

Use SevenSegmentPins to construct it.

Methods

impl<A, B, C, D, E, F, G, Common> SevenSegment<A, B, C, D, E, F, G, Common> where
    A: OutputPin,
    B: OutputPin<Error = A::Error>,
    C: OutputPin<Error = A::Error>,
    D: OutputPin<Error = A::Error>,
    E: OutputPin<Error = A::Error>,
    F: OutputPin<Error = A::Error>,
    G: OutputPin<Error = A::Error>,
    Common: Polarity
[src]

pub fn set(&mut self, value: u8) -> Result<(), A::Error>[src]

Sets the value of the display.

The valid values are 0-9. In case of invalid value, the display will be blank.

Auto Trait Implementations

impl<A, B, C, D, E, F, G, Common> Send for SevenSegment<A, B, C, D, E, F, G, Common> where
    A: Send,
    B: Send,
    C: Send,
    Common: Send,
    D: Send,
    E: Send,
    F: Send,
    G: Send

impl<A, B, C, D, E, F, G, Common> Sync for SevenSegment<A, B, C, D, E, F, G, Common> where
    A: Sync,
    B: Sync,
    C: Sync,
    Common: Sync,
    D: Sync,
    E: Sync,
    F: Sync,
    G: Sync

impl<A, B, C, D, E, F, G, Common> Unpin for SevenSegment<A, B, C, D, E, F, G, Common> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    Common: Unpin,
    D: Unpin,
    E: Unpin,
    F: Unpin,
    G: Unpin

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.