pololu / vl53l0x-arduino

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

Add constructor for sensor with already changed slave device address #15

Closed dodo5522 closed 6 years ago

dodo5522 commented 6 years ago

On using multiple VL53L0X devices as following, the first device's slave address was changed to new one 0x54 if I called setAddress() for the second device's instance. This commit fixes this issue.

  1. 0x52 (default)
  2. 0x54
kevin-pololu commented 6 years ago

Hi, dodo5522.

It's not clear to me what the intended use for this constructor is. Could you describe your setup and your procedure for setting your sensors' addresses and give an example program that uses this function?

Kevin

dodo5522 commented 6 years ago

Hi Kevin,

Sorry, I misunderstood the spec and design of VL53LL0X. My PR is not suitable and I drop it.

Takashi