summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2020-02-27 12:54:44 +0100
committerRomain Porte <microjoe@microjoe.org>2020-02-27 13:07:25 +0100
commite9c22d2f7137491f6c25b9b7456a3f5ad1c155ef (patch)
tree0829c3763bf7c3aac31ca2bdd136197f3be9f524
parent1a19e21b156570025583dc50e3d40d3e56599466 (diff)
downloadcharlcd-e9c22d2f7137491f6c25b9b7456a3f5ad1c155ef.tar.gz
charlcd-e9c22d2f7137491f6c25b9b7456a3f5ad1c155ef.zip
special_char: add module doc
-rw-r--r--src/special_char.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/special_char.rs b/src/special_char.rs
index a5a8807..b288ef1 100644
--- a/src/special_char.rs
+++ b/src/special_char.rs
@@ -1,19 +1,41 @@
+//! Module containing special characters constant codes (Greek letters, math
+//! symbols, etc.)
+//!
+//! Note: these characters only work on the HD44780 screen.
+
+/// α
pub const ALPHA: u8 = 0xe0;
+/// β
pub const BETA: u8 = 0xe2;
+/// ε
pub const EPSILON: u8 = 0xe3;
+/// μ
pub const MU: u8 = 0xe4;
+/// σ
pub const SIGMA: u8 = 0xe5;
+/// ρ
pub const RO: u8 = 0xe6;
+/// θ
pub const THETA: u8 = 0xf2;
+/// Ω
pub const OMEGA: u8 = 0xf4;
+/// Σ
pub const SIGMA_UPPER: u8 = 0xf6;
+/// π
pub const PI: u8 = 0xf7;
+/// ✓
pub const SQRT: u8 = 0xe8;
+/// ⁻¹
pub const INV: u8 = 0xe9;
+/// ∞
pub const INFINITE: u8 = 0xf3;
+/// ÷
pub const DIV: u8 = 0xfd;
+/// x̅
pub const MEAN: u8 = 0xf8;
+/// ·
pub const MEDIAN_DOT: u8 = 0xa5;
+/// ▮
pub const BLOCK: u8 = 0xff;