[−][src]Struct seven_segment::SevenSegment
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]
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,
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,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,