i2cdevlib
i2cdevlib copied to clipboard
MPU6050 not working with TTGO T-Display
I have an MPU6050 connected to my T-Display with DMP6. The raw example works fine but DMP6 doesn't connect. I have the interrupt pin connected to pin 2. I don't know if the interrupts are different on the T-display, or if there is another problem. How should I fix it?
just request DMP FIFO data every 10ms using you don't need to use interrupts any more. although it will be more accurate by less than 10ms if you check on interrupt.
Funciton prototype:
uint8_t MPU6050::dmpGetCurrentFIFOPacket(uint8_t *data);// overflow proof
usage example:
uint8_t fifoBuffer[64]; // FIFO storage buffer
if(mpu.dmpGetCurrentFIFOPacket(fifoBuffer)){
// you've got new data in fifoBuffer
}
Z
It might not be an interrupt issue though because it doesn't even connect before initializing dmp.