Closed PeterHuewe closed 6 years ago
Would use I2C scanner to check sensor availability and address.
Hi, I debugged the issue and found out the root cause. The address of the sensor is correct and the sensor works properly, the library also works perfectly.
The issue is caused by using the I2C Pins as digitalPins for the reset logic, as the ESP8266 does not reconfigure the pins for I2C correctly afterwards.
Looking at the source code here on github, the current version does not use the I2C Pins as digitalPins anymore but the v1.0.1 Release zip still does use them as digitalPins.
--> Cloning the repo or using the v1.0.1 source.zip should do the trick :)
Hi, any ideas why I can't get measurements from the sensor? I always read back 0xFF. But the acknowledgement seems to work, also the sensors is detected at 0x1F when using a simple i2c slave scanner arduino sketch.
I'm using the examples/cartesian_fast example - on an esp8266. I added some print statements to the BusInterface.cpp - the result looks like this:
Any ideas?