编译更新
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -24,16 +24,6 @@
|
||||
"__size__": 13061,
|
||||
"__name__": "mini_bot.py"
|
||||
},
|
||||
"mini_g2": {
|
||||
"__require__": [
|
||||
"gc",
|
||||
"machine",
|
||||
"rc522"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 544,
|
||||
"__name__": "mini_g2.py"
|
||||
},
|
||||
"mini_go": {
|
||||
"__require__": [
|
||||
"time",
|
||||
@@ -46,6 +36,17 @@
|
||||
"__size__": 8481,
|
||||
"__name__": "mini_go.py"
|
||||
},
|
||||
"mini_gx": {
|
||||
"__require__": [
|
||||
"gc",
|
||||
"machine",
|
||||
"rc522",
|
||||
"ci130x"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 736,
|
||||
"__name__": "mini_gx.py"
|
||||
},
|
||||
"mixgo_mini": {
|
||||
"__require__": [
|
||||
"time",
|
||||
|
||||
@@ -1,23 +1,31 @@
|
||||
"""
|
||||
MINI G2 -MixGo MINI EXT G2
|
||||
|
||||
MicroPython library for the MINI G2 (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)
|
||||
|
||||
'''Reclaim memory'''
|
||||
gc.collect()
|
||||
"""
|
||||
MINI GX -MixGo MINI EXT (G2, G5)
|
||||
|
||||
MicroPython library for the MINI GX (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(G5)'''
|
||||
try :
|
||||
import ci130x
|
||||
ext_asr = ci130x.CI130X(ext_i2c)
|
||||
except Exception as e:
|
||||
#print("Warning: Failed to communicate with CI130X (ASR) or",e)
|
||||
pass
|
||||
|
||||
'''Reclaim memory'''
|
||||
gc.collect()
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user