Crates.io | seven_seg |
lib.rs | seven_seg |
version | 0.1.2 |
source | src |
created_at | 2023-05-30 15:43:27.065102 |
updated_at | 2023-05-30 15:43:27.065102 |
description | Seven-segment digital display for terminal. |
homepage | https://github.com/pic16f877ccs/seven_seg |
repository | https://github.com/pic16f877ccs/seven_seg |
max_upload_size | |
id | 878018 |
size | 127,081 |
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.
GNU General Public License v3.0