adafruit / Adafruit_VL53L0X

Arduino library for Adafruit VL53L0X
149 stars 118 forks source link

Reopening: https://github.com/adafruit/Adafruit_VL53L0X/issues/27 #28

Closed odo2063 closed 4 years ago

odo2063 commented 4 years ago

@caternuson: I installed it with the arduino library manager, and did not modfify it. It seems there is/was(?) a problem with the way of installing. Maybe it's got some old or debug branch.

caternuson commented 4 years ago

Are you re-opening because the problem still exists? If you compare the file that is in your library folder with the repo, is it different? Is the line the #defines I2C_DEBUG uncomented? Have you searched through the files associated with the STM NUCLEO Board Support Package to make sure there is not a #define buried in there somewhere? Do you have an Arduino UNO, or something other than an STM NUCLEO, to try and see if you get the same issue?

caternuson commented 4 years ago

Run this sketch and post what you get in the serial console:

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("Scooby-Doo");
#ifdef I2C_DEBUG
  Serial.println(", where are you?");
#endif
  delay(1000);
}
odo2063 commented 4 years ago

i commented it out in the adafruit library, where it was defined. works now. but the question is what could happend so it was not commented out in the lib?

caternuson commented 4 years ago

The question is why it is being installed with the line uncommented. I can not recreate this. If I install via Library Manager in Arduino, the line is commented out.

odo2063 commented 4 years ago

what os do you use?

caternuson commented 4 years ago

Linux. But the Library Manager shouldn't have any OS specific behavior.

odo2063 commented 4 years ago

me too..so I tried some downgrading/upgrading of the lib. now it stays commented out... :-/ strange....

caternuson commented 4 years ago

It could be something with local caching. Not sure. But really sounds like something with your Arduino setup. Just make sure the line is commented out. If you can figure out exactly why/how you are getting it installed with the line uncommented, you can reopen this issue.

odo2063 commented 4 years ago

ok...so thanks for the help...