更新支持MINI-G5库,及修复HX720负数转换问题

This commit is contained in:
dahanzimin
2025-04-16 18:47:26 +08:00
parent 325d6e90dc
commit 9702a31053
3 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
"""
MINI G5 -MixGo MINI EXT G5
MicroPython library for the MINI G5 (Expansion board for MixGo MINI)
=======================================================
@dahanzimin From the Mixly Team
"""
import gc
from machine import Pin, SoftI2C
'''i2c-extboard'''
ext_i2c = SoftI2C(scl=Pin(7), sda=Pin(8), 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)
'''ASR_Sensor'''
try :
import ci130x
ext_asr = ci130x.CI130X(ext_i2c)
except Exception as e:
print("Warning: Failed to communicate with CI130X (ASR) or",e)
'''Reclaim memory'''
gc.collect()