build(boards): xpython板卡执行 npm run build:prod

This commit is contained in:
王立帮
2025-09-13 23:03:29 +08:00
parent 167c6e9e30
commit b4256d9764
72 changed files with 1906 additions and 3306 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'