Crate seven_seg

Source
Expand description

Pseudo seven segment digital display.

One, two, three and four digits. One digit, it can be a string of numbers from zero to nine or a dash no value.

§Examples

let four_digits = sevseg_four("8023").unwrap();

assert_eq!(&four_digits, "┏━━━┓ ┏━━━┓ ╺━━━┓ ╺━━━┓\n\
                          ┃   ┃ ┃   ┃     ┃     ┃\n\
                          ┣━━━┫ ┃   ┃ ┏━━━┛ ╺━━━┫\n\
                          ┃   ┃ ┃   ┃ ┃         ┃\n\
                          ┗━━━┛ ┗━━━┛ ┗━━━╸ ╺━━━┛\n"
);

Functions§

sevseg_four
Four digits seven segment digital display.
sevseg_four_iter
Four digits seven segment digital display returns an iterator.
sevseg_one
One digits seven segment digital display.
sevseg_three
Three digits seven segment digital display.
sevseg_two
Two digits seven segment digital display.