Closed
Description
I tried an HTU21DF (temperature and humidity) and a BMP180 (barometric pressure) but the drivers do not get past the first I2C transmission. Both sensors work on an ESP8266.
The first thing the HTU21DF driver does is send a RESET command like this. Writing to this register forces the sensor to factory defaults.
Wire.beginTransmission(HTU21DF_I2CADDR); // addr 0x40
Wire.write(HTU21DF_RESET); // 0xFE
Wire.endTransmission();
This is what it looks like on an Uno.
Here is what happens on my ESP32. If other people have I2C working, the problem must be in my setup or ESP32.
Since there is a NAK, the driver aborts the rest of the transmission.
I am trying various changes to esp32-hal-i2c.c but have not made any progress.
Metadata
Metadata
Assignees
Labels
No labels