From 9191d4b7df942ef1cb1ece3e3cb36db86b40056a Mon Sep 17 00:00:00 2001 From: "Christopher P. Yarger" Date: Sun, 10 Oct 2021 22:52:58 -0400 Subject: [PATCH] update character font, Add O --- display.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/display.py b/display.py index ff1fba1..15077da 100644 --- a/display.py +++ b/display.py @@ -176,6 +176,7 @@ def initialise_fonts(self): "H": self.Character(width=4, rows=[0x09,0x09,0x09,0x0F,0x09,0x09,0x09]), "L": self.Character(width=4, rows=[0x01,0x01,0x01,0x01,0x01,0x01,0x0F]), "N": self.Character(width=4, rows=[0x09,0x09,0x0B,0x0D,0x09,0x09,0x09]), + "O": self.Character(width=4, rows=[0x0F,0x09,0x09,0x09,0x09,0x09,0x0F]), "P": self.Character(width=4, rows=[0x07,0x09,0x09,0x07,0x01,0x01,0x01]), "U": self.Character(width=4, rows=[0x09,0x09,0x09,0x09,0x09,0x09,0x06]), ":": self.Character(width=2, rows=[0x00,0x03,0x03,0x00,0x03,0x03,0x00]), #2×7 @@ -190,8 +191,8 @@ def initialise_fonts(self): "/": self.Character(width=2, rows=[0x02,0x02,0x02,0x01,0x01,0x01,0x01,0x01]), # 3×7 "°C2": self.Character(width=4, rows=[0x00,0x01,0x0C,0x12,0x02,0x02,0x12,0x0C]), # 5×7 "°F2": self.Character(width=4, rows=[0x00,0x01,0x1E,0x02,0x1E,0x02,0x02,0x02]), - "V": self.Character(width=4, rows=[0x11,0x11,0x11,0x11,0x11,0x0A,0x04]), # 5×7 - "W": self.Character(width=4, rows=[0x11,0x11,0x11,0x15,0x15,0x1B,0x11]), # 5×7 + "V": self.Character(width=5, rows=[0x11,0x11,0x11,0x11,0x11,0x0A,0x04]), # 5×7 + "W": self.Character(width=5, rows=[0x11,0x11,0x11,0x15,0x15,0x1B,0x11]), # 5×7 } self.digital_tube = { "0": [0x0F, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0F],