Skip to content

Commit

Permalink
update character font, Add O
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyarger committed Oct 11, 2021
1 parent d14bf3c commit 9191d4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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],
Expand Down

0 comments on commit 9191d4b

Please sign in to comment.