Seeed-Studio / SenseCraft-Wio

Open source smart sensor software for no-code sense, process and uplink. It’s now compatible with Wio Terminal, and we hope it will be compatible with M5 Stack, XIAO and MCU with screen on the basis of community contribution
MIT License
40 stars 15 forks source link

VL53L0X sensor could display with v0.4.uf2 but not the build by the latest code #26

Closed hayschan closed 1 year ago

hayschan commented 1 year ago

Describe the bug When I flash v0.4.uf2 from releases, VL53L0X could be detected and read as expected when I plug into Wio Terminal right port.

But when I git clone the repo, and build it myself. It fails to build because the missing lib of VL53L0X.

Then I add seeed-studio/Grove Ranging sensor - VL53L0X@^1.1.1 in platform.ini. After that, I could build and upload successfully.

However, when I plug in the Grove Ranging sensor - VL53L0X hardware using the right port, it could not recognize the sensor.

hayschan commented 1 year ago

Even if I build with the source code provided alongside v0.4.uf2 from releases, the problem persist.

image
Maxwelltoo commented 1 year ago

My bad, I forgot to update the list of dependent libraries. You are doing the right thing, but the main branch of the library is based on a hardware i2c implementation, for Wio Terminal hardware, software i2c should be used. The correct dependency is https://github.com/Seeed-Studio/Grove-Ranging-sensor-VL53L0X#K1101, and subsequent commits have added this item.