更新CE支持汉字滚动显示,及MINI的显示方向
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user