Closed IMAN4K closed 6 years ago
After some debugging this is the error point in reading RH.
There should be a problem with Arduino TwoWire
interface.
This seems to be related to TwoWire
interface.
No matter how many instance you create, you can just use one instance at a time to communicate with one I2C
device !
More specifically, there are some global pin values which is set to twi_init(...)
at every construction here
Hi. I've recently test the library with the
HTU21D
&SI7021
to read the sensor data in some interval callback like this:But inside the timer callback, sensors always report battery status as false and the humidity and temperature as error (
255 == HTU21D_ERROR
).The situation for polling is not the same and sensors working properly! :
No idea what's the problem here
Setup:
Latest lib version
Latest Arduino Git version
ESP-8266(nodemcu)
Regards.