stm32duino mpu6050 with dmp not working in PlatformIO ide
When I use this MPU6050 library, STM32(Bluepill) does not work under the Arduino framework of PlatformIO ide. I can find the address of mpu6050 through I2C detection program, but there is an error when running demo MPU6050_DMP6.
DMP initialization failed (code1)
Has anyone encountered this problem and how to solve it?
Check the I2Cdev.h for the following configuration:
#define I2CDEV_IMPLEMENTATION I2CDEV_ARDUINO_WIRE //#define I2CDEV_IMPLEMENTATION I2CDEV_TEENSY_3X_WIRE // #define I2CDEV_IMPLEMENTATION I2CDEV_BUILTIN_SBWIRE // #define I2CDEV_IMPLEMENTATION I2CDEV_BUILTIN_FASTWIRE
The other options don't work with STM32duino.
Also, connect to 5V not 3V3.