pololu / vl53l0x-arduino

Pololu Arduino library for VL53L0X time-of-flight distance sensor
https://www.pololu.com/product/2490
Other
346 stars 162 forks source link

Implementation of software i2c #47

Closed joesphan closed 4 years ago

joesphan commented 4 years ago

Hello! I'm planning on using the vl53l0x with a pro micro, which pins sda and scl are occupied by other interrupt devices. I was wondering is it easy to implement software i2c?

Thanks in advance

kevin-pololu commented 4 years ago

The library doesn't have any built-in support for software I2C, but it probably shouldn't be too hard to modify it to use a software I2C library like this one. If you decide to try this and need help, please post on the Pololu forum, which would be a better place for us to help you troubleshoot code.