Update(boards): xpython板卡执行 build:prod
This commit is contained in:
BIN
boards/default/micropython/build/HZK16_GBK.bin
Normal file
BIN
boards/default/micropython/build/HZK16_GBK.bin
Normal file
Binary file not shown.
@@ -572,7 +572,7 @@
|
|||||||
"ustruct"
|
"ustruct"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 1423,
|
"__size__": 1424,
|
||||||
"__name__": "ntptime.py"
|
"__name__": "ntptime.py"
|
||||||
},
|
},
|
||||||
"object_picture": {
|
"object_picture": {
|
||||||
@@ -690,7 +690,7 @@
|
|||||||
"ustruct"
|
"ustruct"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 1559,
|
"__size__": 1556,
|
||||||
"__name__": "rtctime.py"
|
"__name__": "rtctime.py"
|
||||||
},
|
},
|
||||||
"sc7a20": {
|
"sc7a20": {
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ def settime(times):
|
|||||||
try:
|
try:
|
||||||
val = eval(times)
|
val = eval(times)
|
||||||
if len(val) >= 6:
|
if len(val) >= 6:
|
||||||
times=(val[0], val[1], val[2], 0, val[3], val[4], val[5], 0)
|
times=(val[0], val[1], val[2], val[3], val[4], val[5], 0)
|
||||||
else:
|
else:
|
||||||
raise ValueError("Clock information format error")
|
raise ValueError("Clock information format error")
|
||||||
except:
|
except:
|
||||||
raise ValueError("Clock information format error, use ',' to separate at least 6 numerical values")
|
raise ValueError("Clock information format error, use ',' to separate at least 6 numerical values")
|
||||||
if isinstance(times, tuple):
|
if type(times) in (tuple, list):
|
||||||
if 6 <= len(times) <= 8:
|
if 6 <= len(times) <= 8:
|
||||||
RTC().datetime((times[0], times[1], times[2], 0, times[3], times[4], times[5], 0))
|
RTC().datetime((times[0], times[1], times[2], 0, times[3], times[4], times[5], 0))
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def settime(times):
|
|||||||
try:
|
try:
|
||||||
val = eval(times)
|
val = eval(times)
|
||||||
if len(val) >= 6:
|
if len(val) >= 6:
|
||||||
times=(val[0], val[1], val[2], 0, val[3], val[4], val[5], 0)
|
times=(val[0], val[1], val[2], val[3], val[4], val[5], 0)
|
||||||
else:
|
else:
|
||||||
raise ValueError("Clock information format error")
|
raise ValueError("Clock information format error")
|
||||||
except:
|
except:
|
||||||
|
|||||||
Binary file not shown.
@@ -63,7 +63,7 @@
|
|||||||
"ci130x"
|
"ci130x"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7048,
|
"__size__": 6753,
|
||||||
"__name__": "mixgo_sant.py"
|
"__name__": "mixgo_sant.py"
|
||||||
},
|
},
|
||||||
"mixgo_zero": {
|
"mixgo_zero": {
|
||||||
|
|||||||
@@ -169,6 +169,13 @@ class LED:
|
|||||||
|
|
||||||
onboard_led = LED(pins=[45, 46])
|
onboard_led = LED(pins=[45, 46])
|
||||||
|
|
||||||
|
class Voice_Energy:
|
||||||
|
def read(self):
|
||||||
|
_dat = onboard_asr._rreg(0x08, 3) #在语音识别里获取
|
||||||
|
return (_dat[0] | _dat[1] << 8) // 10
|
||||||
|
|
||||||
|
onboard_sound = Voice_Energy()
|
||||||
|
|
||||||
class Clock:
|
class Clock:
|
||||||
def __init__(self, x, y, radius, color, oled=onboard_tft): #定义时钟中心点和半径
|
def __init__(self, x, y, radius, color, oled=onboard_tft): #定义时钟中心点和半径
|
||||||
self.display = oled
|
self.display = oled
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"type": "command",
|
"type": "command",
|
||||||
"portSelect": "all",
|
"portSelect": "all",
|
||||||
"micropython:esp32s3:mixgo_sant": {
|
"micropython:esp32s3:mixgo_sant": {
|
||||||
"command": "\"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --before default_reset --after=no_reset_stub erase_flash && \"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --after hard_reset write_flash 0x0 \"{indexPath}/build/Mixgo_Sant-v1.23.0.bin\" 0xE00000 \"{indexPath}/../micropython/build/HZK16.bin\""
|
"command": "\"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --before default_reset --after=no_reset_stub erase_flash && \"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --after hard_reset write_flash 0x0 \"{indexPath}/build/Mixgo_Sant-v1.23.0.bin\" 0xE00000 \"{indexPath}/../micropython/build/HZK16_GBK.bin\""
|
||||||
},
|
},
|
||||||
"micropython:esp32s3:mixgo_nova": {
|
"micropython:esp32s3:mixgo_nova": {
|
||||||
"command": "\"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --before default_reset --after=no_reset_stub erase_flash && \"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --after hard_reset write_flash 0x0 \"{indexPath}/build/Mixgo_Nova-v1.21.0.bin\" 0x700000 \"{indexPath}/../micropython/build/HZK12.bin\""
|
"command": "\"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --before default_reset --after=no_reset_stub erase_flash && \"{esptool}\" --chip esp32s3 --port {com} --baud 460800 --after hard_reset write_flash 0x0 \"{indexPath}/build/Mixgo_Nova-v1.21.0.bin\" 0x700000 \"{indexPath}/../micropython/build/HZK12.bin\""
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
"path": "./build/Mixgo_Sant_lib-v1.23.0.bin"
|
"path": "./build/Mixgo_Sant_lib-v1.23.0.bin"
|
||||||
}, {
|
}, {
|
||||||
"offset": "0xE00000",
|
"offset": "0xE00000",
|
||||||
"path": "../micropython/build/HZK16.bin"
|
"path": "../micropython/build/HZK16_GBK.bin"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -572,7 +572,7 @@
|
|||||||
"ustruct"
|
"ustruct"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 1423,
|
"__size__": 1424,
|
||||||
"__name__": "ntptime.py"
|
"__name__": "ntptime.py"
|
||||||
},
|
},
|
||||||
"object_picture": {
|
"object_picture": {
|
||||||
@@ -690,7 +690,7 @@
|
|||||||
"ustruct"
|
"ustruct"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 1559,
|
"__size__": 1556,
|
||||||
"__name__": "rtctime.py"
|
"__name__": "rtctime.py"
|
||||||
},
|
},
|
||||||
"sc7a20": {
|
"sc7a20": {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
"ci130x"
|
"ci130x"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7048,
|
"__size__": 6753,
|
||||||
"__name__": "mixgo_sant.py"
|
"__name__": "mixgo_sant.py"
|
||||||
},
|
},
|
||||||
"mixgo_zero": {
|
"mixgo_zero": {
|
||||||
|
|||||||
Reference in New Issue
Block a user