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

This commit is contained in:
王立帮
2025-05-30 00:41:34 +08:00
parent e4b3c3be5b
commit 382d158b88
156 changed files with 1146 additions and 582 deletions

View File

@@ -0,0 +1,30 @@
"""
SANT GX -MixGo SANT EXT G3
MicroPython library for the SANT GX (Expansion board for MixGo SANT)
=======================================================
@dahanzimin From the Mixly Team
"""
import gc
from machine import Pin, SoftI2C
'''i2c-extboard'''
ext_i2c = SoftI2C(scl=Pin(18), sda=Pin(21), freq=400000)
'''RFID_Sensor'''
try :
import rc522
ext_rfid = rc522.RC522(ext_i2c)
except Exception as e:
print("Warning: Failed to communicate with SI522A (RFID) or",e)
'''RADAR_Sensor'''
try :
import cbr817
ext_mmw = cbr817.CBR817(ext_i2c)
except Exception as e:
print("Warning: Failed to communicate with CBR817 (RADAR) or",e)
'''Reclaim memory'''
gc.collect()