更新CE支持汉字滚动显示,及MINI的显示方向

This commit is contained in:
dahanzimin
2025-09-10 19:17:06 +08:00
parent 649a5f6df1
commit e8a30ad3af
3 changed files with 156 additions and 73 deletions

View File

@@ -12,9 +12,10 @@ from ht16k33 import HT16K33
class Matrix(HT16K33):
"""A single matrix."""
def __init__(self, i2c, address=0x70, brightness=0.3, font="5x8", width=16, height=8):
def __init__(self, i2c, address=0x70, brightness=0.3, font="5x8", font_address=0x3A0000, width=16, height=8):
super().__init__(i2c, address, brightness, width, height)
self.font(font)
self.uin_font(font_address)
"""Graph module"""
HEART=b' \x02p\x07\xf8\x0f\xf8\x0f\xf0\x07\xe0\x03\xc0\x01\x80\x00'