Closed lazyzero closed 3 years ago
Hello again,
I had again some time to dig into the problem of reboots using this lib.
Main Problem is that in the constructor:
VL6180x::VL6180x(uint8_t address)
// Initialize the Library
{
Wire.begin(); // Arduino Wire library initializer
_i2caddress = address; //set default address for communication
}
the Wire.begin() collides with the Wire.begin(D5,D6) in my main program, causing the resets. After deleting the Wire.begin in the lib everything was working as it should.
I guess it doesn't hurt in normal Adruino programmes if the begin is also done in the setup of the arduino program, as it is also done in your exsample.
So I propose to remove it from the library constructor.
Best Christian
Hi @lazyzero - if you want to submit a pull request with the changes you'd like to see, we can certainly take a look at those and determine if they would work for us to pull them into our libraries. Thanks!
Super old but I was in the repo touching things up. This should be fixed with PR #3. Closing.
I tested the lib with an Uno and it worked like a charme, but when attaching it to an NodeMCU V1 its not working.
I only get this: