From 9024d9ff0ec7d818c6188ec9a198ed170ac90b4c Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Mon, 8 Sep 2025 15:33:43 +0300 Subject: [PATCH] fix(rom): extend 7-segment alphabet Add "c", "a", "d" and "s", "k", "y" to the 7-segment encoding dictionary, make "H" and "I" uppercase (so IHP is rendered uppercase and not lowercase) --- rom.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/rom.py b/rom.py index d588912..e5f094b 100644 --- a/rom.py +++ b/rom.py @@ -33,16 +33,19 @@ segment_font = { "D": 0b01011110, "E": 0b01111001, "F": 0b01110001, - "f": 0b01110001, - "h": 0b01110100, - "i": 0b00010000, - "o": 0b01011100, - "p": 0b01110011, - "t": 0b01111000, "a": 0b01110111, "b": 0b01111100, "c": 0b01011000, "d": 0b01011110, + "f": 0b01110001, + "h": 0b01110110, # Actually uppercase H + "i": 0b00110000, # Actually uppercase I + "k": 0b01110101, + "o": 0b01011100, + "p": 0b01110011, + "s": 0b01101101, + "t": 0b01111000, + "y": 0b01101110, }