大家好, 我想用M5 StickC Plus 2連接3個4米激光測距儀。
連接方式是用M5 Stick C 2 Plus 經I2C連接Pa.Hub V2.1, 然後channel 0, 1, 2各接一個TOF 4M
我用排除法驗證了, 當執行以下句子就會出現error:
tof4m_front = TOF4MUnit(PAHUBUnit(i2c=i2c0, channel=0), 0x70)
我試過以TOF代替TOF 4M, 執行init TOF 是正常可以執行。
因此, 我相信uiFlow 4M的init TOF4M function 應用在Pa.Hub 上句式出錯。請開發者更新uiFlow 2.0 這部分的語句。

收到這個ERROR:
MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)
Type "help()" for more information.
E (43754) i2c: i2c driver install error
E (43771) time: The current date/time in Shanghai is: Wed Feb 19 01:17:10 2025
E (43818) wifi:NAN WiFi stop
E (43820) transport_base: poll_read select error 113, errno = Software caused connection abort, fd = 55
E (43821) mqtt_client: Poll read error: 119, aborting connection
[INFO] Syncing resources...
[INFO] WiFi connected!
[INFO] File apps/Infanity_V3.py already downloaded.
[INFO] MD5 mismatch for file: main_ota_temp.py
[INFO] File https://m5stack-uiflow2-file.oss-cn-shenzhen.aliyuncs.com/d57339e5cfd1369fbba516206d390db4/main_ota_temp.py downloaded successfully.
[INFO] Downloaded and verified file: main_ota_temp.py
[INFO] Sync finished.
E (50435) i2c: i2c driver install error
Traceback (most recent call last):
File "main.py", line 50, in <module>
File "main.py", line 37, in setup
File "driver/vl53l1x.py", line 60, in init
File "driver/vl53l1x.py", line 176, in get_model_info
File "driver/vl53l1x.py", line 273, in _read_register
TypeError: ![unexpected keyword argument 'addrsize']
MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)
Type "help()" for more information.