summaryrefslogtreecommitdiffstats
path: root/examples/special_char.rs
blob: 5f66fd9e676877440702de48f55297b6fc406f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use charlcd::special_char;
use charlcd::Screen;
use std::io::Write;

fn main() -> std::io::Result<()> {
    let mut screen = Screen::default()?;

    screen.clear()?;

    screen.write(&[special_char::ALPHA])?;
    screen.write(&[special_char::BETA])?;
    screen.write(&[special_char::EPSILON])?;
    screen.write(&[special_char::MU])?;
    screen.write(&[special_char::SIGMA])?;
    screen.write(&[special_char::RO])?;
    screen.write(&[special_char::THETA])?;
    screen.write(&[special_char::OMEGA])?;
    screen.write(&[special_char::SIGMA_UPPER])?;
    screen.write(&[special_char::PI])?;

    screen.write(b"\n")?;

    screen.write(&[special_char::SQRT])?;
    screen.write(&[special_char::INV])?;
    screen.write(&[special_char::INFINITE])?;
    screen.write(&[special_char::DIV])?;
    screen.write(&[special_char::MEAN])?;

    screen.write(&[special_char::MEDIAN_DOT])?;
    screen.write(&[special_char::BLOCK])?;

    screen.flush()?;

    Ok(())
}