更新mini的固件(修复看门狗,门图模反问题,LED灯默认颜色为白)

This commit is contained in:
dahanzimin
2024-09-14 15:14:13 +08:00
parent c195171ae9
commit b451b48155
5 changed files with 52 additions and 52 deletions

View File

@@ -320,14 +320,14 @@ class BOT035(FrameBuffer):
print("Warning: Please upgrade the coprocessor firmware to use this feature")
"""Graph module"""
HEART=b'\x00\x0c\x1e?~\xfc~?\x1e\x0c\x00\x00'
HEART_SMALL=b'\x00\x00\x0c\x1e<x<\x1e\x0c\x00\x00\x00'
HAPPY=b'\x00\x06\x06\x10 @@ \x10\x06\x06\x00'
SAD=b'\x04\x02\x02B \x10\x10 B\x02\x02\x04'
SMILE=b'\x04\x02\x02$@\x80\x80@$\x02\x02\x04'
ANGRY=b'\x01\x02\x84B!\x10\x10!B\x84\x02\x01'
NO=b'\x00\x00\x00B$\x18\x18$B\x00\x00\x00'
YES=b'\x00\x00\x10 @@ \x10\x08\x04\x02\x00'
DOOR_OPEN=b'\x00\x00\xfe\x03\x03\x03\x13\x13\xff\xfe\x00\x00'
DOOR_OPENING=b'\x00\x00\xfe\x03\x03\x15\xf9\x01\x01\xfe\x00\x00'
DOOR_CLOSE=b'\x00\x00\xfe\xfd\x01\x01\x01\x01\x01\xfe\x00\x00'
HEART =b'\x00\x0c\x1e?~\xfc~?\x1e\x0c\x00\x00'
HEART_SMALL =b'\x00\x00\x0c\x1e<x<\x1e\x0c\x00\x00\x00'
HAPPY =b'\x00\x06\x06\x10 @@ \x10\x06\x06\x00'
SAD =b'\x04\x02\x02B \x10\x10 B\x02\x02\x04'
SMILE =b'\x04\x02\x02$@\x80\x80@$\x02\x02\x04'
ANGRY =b'\x01\x02\x84B!\x10\x10!B\x84\x02\x01'
NO =b'\x00\x00\x00B$\x18\x18$B\x00\x00\x00'
YES =b'\x00\x00\x10 @@ \x10\x08\x04\x02\x00'
DOOR_OPEN =b'\x00\x00\xfe\xfd\x01\x01\x01\x01\x01\xfe\x00\x00'
DOOR_OPENING =b'\x00\x00\xfe\x03\x03\x15\xf9\x01\x01\xfe\x00\x00'
DOOR_CLOSE =b'\x00\x00\xfe\x03\x03\x03\x13\x13\xff\xfe\x00\x00'

View File

@@ -125,15 +125,15 @@ class Button(KEYSensor):
return not self.key.value()
B1key = Button(9)
B2key = KEYSensor(0,0)
A1key = KEYSensor(0,2100)
A2key = KEYSensor(0,1500)
A3key = KEYSensor(0,800)
A4key = KEYSensor(0,2700)
B2key = KEYSensor(0, 0)
A1key = KEYSensor(0, 2100)
A2key = KEYSensor(0, 1500)
A3key = KEYSensor(0, 800)
A4key = KEYSensor(0, 2700)
'''2LED-Multiplex RGB'''
class LED:
def __init__(self, rgb, num=2, color=3):
def __init__(self, rgb, num=2, color=7):
self._rgb = rgb
self._col = [color] * num
self._color = ((0, 0, 0), (1, 0, 0), (0, 1, 0), (0, 0, 1), (1, 1, 0), (0, 1, 1), (1, 0, 1), (1, 1, 1))