From f5810e6f03522c31ebb0016a8e1c5e30d1d7d4ed Mon Sep 17 00:00:00 2001 From: dahanzimin <353767514@qq.com> Date: Thu, 17 Apr 2025 10:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6MINI=20G2,G5=E5=BA=93?= =?UTF-8?q?=E4=B8=BAGX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../origin/build/lib/mini_g2.py | 23 ------------------- .../build/lib/{mini_g5.py => mini_gx.py} | 13 ++++++----- 2 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 boards/default_src/micropython_esp32c2/origin/build/lib/mini_g2.py rename boards/default_src/micropython_esp32c2/origin/build/lib/{mini_g5.py => mini_gx.py} (59%) diff --git a/boards/default_src/micropython_esp32c2/origin/build/lib/mini_g2.py b/boards/default_src/micropython_esp32c2/origin/build/lib/mini_g2.py deleted file mode 100644 index c9c2a042..00000000 --- a/boards/default_src/micropython_esp32c2/origin/build/lib/mini_g2.py +++ /dev/null @@ -1,23 +0,0 @@ -""" -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() diff --git a/boards/default_src/micropython_esp32c2/origin/build/lib/mini_g5.py b/boards/default_src/micropython_esp32c2/origin/build/lib/mini_gx.py similarity index 59% rename from boards/default_src/micropython_esp32c2/origin/build/lib/mini_g5.py rename to boards/default_src/micropython_esp32c2/origin/build/lib/mini_gx.py index 5038dfdc..7fcb0fa8 100644 --- a/boards/default_src/micropython_esp32c2/origin/build/lib/mini_g5.py +++ b/boards/default_src/micropython_esp32c2/origin/build/lib/mini_gx.py @@ -1,7 +1,7 @@ """ -MINI G5 -MixGo MINI EXT G5 +MINI GX -MixGo MINI EXT (G2, G5) -MicroPython library for the MINI G5 (Expansion board for MixGo MINI) +MicroPython library for the MINI GX (Expansion board for MixGo MINI) ======================================================= @dahanzimin From the Mixly Team """ @@ -15,16 +15,17 @@ ext_i2c = SoftI2C(scl=Pin(7), sda=Pin(8), freq=400000) '''RFID_Sensor''' try : import rc522 - ext_rfid = rc522.RC522(ext_i2c) + ext_rfid = rc522.RC522(ext_i2c) except Exception as e: print("Warning: Failed to communicate with SI522A (RFID) or",e) -'''ASR_Sensor''' +'''ASR_Sensor(G5)''' try : import ci130x - ext_asr = ci130x.CI130X(ext_i2c) + ext_asr = ci130x.CI130X(ext_i2c) except Exception as e: - print("Warning: Failed to communicate with CI130X (ASR) or",e) + #print("Warning: Failed to communicate with CI130X (ASR) or",e) + pass '''Reclaim memory''' gc.collect()