git clone --recursive --depth 1 --branch v1.11.5 https://github.com/STMicroelectronics/STM32CubeF0.git
git clone https://github.com/eiffelpeter/stm32_mpu6050_dumbbell.git
Item | pin |
---|---|
I2C SCL | PB6 |
I2C SDA | PB7 |
open stm32_mpu6050_dumbbell.ioc
then generate code.
select NO download firmware package.
open stm32_mpu6050_dumbbell.uvprojx
by Keil.
config imu USE_BNO055 or USE_MPU6050 in main.h.
build and program stm32.