BMI160-Arduino
BMI160-Arduino copied to clipboard
I am using the default code but getting Wire.endTransmission() failed. I tried the other suggestions in the issues such as including Wire.begin but new problems arise with BMI160.begin(BMI160GenClass::I2C_MODE, Wire, i2c_addr);
Using getMotionDetectionThreshold() thusly: ``` BMI160.begin(BMI160GenClass::I2C_MODE, I2C_ADDR_ACCEL_BMI160, ACCEL_INT_1_PIN); ... Serial.print(", MotionDetectionThreshold:"); Serial.print(BMI160.getMotionDetectionThreshold()); ... Serial.println(); ``` I get ``` Compiling sketch... /Users/myself/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32s2-elf-g++ -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER=\"v4.4.2\"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -I/Users/myself/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/tools/sdk/esp32s2/include/newlib/platform_include ......
Aren't SCL, SDA I2C pins? Why aren't SCx and SDx used specifcally on that board? I looked at [this](https://pdf1.alldatasheet.com/datasheet-pdf/view/1132066/BOSCH/BMI160.html) datasheet, and on the 4-pin SPI connection it shows: (Acc ->...
Whenever I connect the sensor as in the schematics it just spams out Wire.endTransmission() Failed.