jrowberg / i2cdevlib

I2C device library collection for AVR/Arduino or other C++-based MCUs

Home Page:http://www.i2cdevlib.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange line in esp-idf mpu6050 example

brand17 opened this issue · comments

The file example.cpp has the following line:

} else if (mpuIntStatus & 0x02) {

to check for DMP data ready interrupt.

But I see here https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf (page 28) that the zero bit should be checked instead:

} else if (mpuIntStatus & 0x01) {

The DMP data ready interrupt is not the same as the general data ready interrupt, so nope. They just don't document it in the official register map section...argh.