simondlevy / VL53L5CX

Arduino library for ST Microelectronics VL53L5CX multizone Time-of-Flight ranging sensor
MIT License
27 stars 13 forks source link

Fixed errors with large i2c transactions #1

Closed fl3tching101 closed 3 years ago

fl3tching101 commented 3 years ago

Issues with communicating to the VL53L5CX sensor were determined to be related to large i2c reads and writes due to the way the Wire Arduino library works. These changes allow for any size read/write to be performed without running into issues. Also updated single byte read/write functions to simply call the multi-byte version for simplicity.

Tested and working with the "Ranging basics" example.