adafruit / Adafruit_VL53L0X

Arduino library for Adafruit VL53L0X
150 stars 118 forks source link

Add support for specifying an alternate I2C bus other than "Wire" #16

Closed chetan-prime closed 6 years ago

chetan-prime commented 6 years ago

This should allow using the VL530L0X on the Arduino Due's alternate I2C Bus ("Wire1"). An extra parameter(with default value "Wire") has been added to the constructor to allow this.

ladyada commented 6 years ago

looks great, just needs some updates to the Doxygen documentation - once it passes travis we'll merge!

chetan-prime commented 6 years ago

Thanks, this is the first time I've actually had to edit Doxygen files. Am tracing what format they use & will update this PR

ladyada commented 6 years ago

we have a guide here https://learn.adafruit.com/the-well-automated-arduino-library

ladyada commented 6 years ago

awesome, thanks!

chetan-prime commented 6 years ago

Thanks for the merge, I'll be using this library on a Due as it supports automatic SPAD management which I require due to use of a lens.

ladyada commented 6 years ago

cool :)