seven_seg

Crates.ioseven_seg
lib.rsseven_seg
version0.1.2
sourcesrc
created_at2023-05-30 15:43:27.065102
updated_at2023-05-30 15:43:27.065102
descriptionSeven-segment digital display for terminal.
homepagehttps://github.com/pic16f877ccs/seven_seg
repositoryhttps://github.com/pic16f877ccs/seven_seg
max_upload_size
id878018
size127,081
(pic16f877ccs)

documentation

README

seven_seg

Pseudo seven segment digital display.

Examples

 use seven_seg::sevseg_four;
 let four_digits = sevseg_four("8023").unwrap();
 assert_eq!(&four_digits, "┏━━━┓ ┏━━━┓ ╺━━━┓ ╺━━━┓\n\
                           ┃   ┃ ┃   ┃     ┃     ┃\n\
                           ┣━━━┫ ┃   ┃ ┏━━━┛ ╺━━━┫\n\
                           ┃   ┃ ┃   ┃ ┃         ┃\n\
                           ┗━━━┛ ┗━━━┛ ┗━━━╸ ╺━━━┛\n"
 );
 

Example cpu_freg.rs from the examples folder.

License

GNU General Public License v3.0

Commit count: 11

cargo fmt