Using the espidf for an esp32-s3 based proejct.
Example from here I2C communication failures on ESP32-S3 (works on ESP32) (IDFGH-7138) · Issue #8741 · espressif/esp-idf · GitHub i2c works fine and shows me the device with the id 0x19.
If I am using the arduino core it doesn’t work and finds no device at all.
#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_LIS3DH.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_I2CDevice.h>const int i2c_sda = 5;
const int i2c_scl = 6;Adafruit_I2CDevice dev = Adafruit_I2CDevice(0x19, &Wire);
Adafruit_LIS3DH lis = Adafruit_LIS3DH();void setup() {
Serial.begin(9600);
Wire.setPins(i2c_sda, i2c_scl);
//Wire.begin(i2c_sda, i2c_scl);if (!dev.begin(true)) {
Serial.println(“No I2C device found…”);
}
if (!lis.begin(0x19)) {
Serial.println(“LIS3DH not found…”);
}
}void loop() {
}
Is this a known bug as it looks like (which currently only got fixed within esp-idf)?