#include <basicMPU6050.h>
basicMPU6050<> imu;
void setup() {
imu.setup();
imu.setBias();
}
void loop() {
imu.updateBias();
if (imu.gy() > 0.1) { //DoSomething}
else if (imu.gy() < -0.1) { //DoSomethingElse}
}
Well... I have absolutely no idea, which pins to connect to the MPU6050, except for the VCC and GND of course. I've tried to connect it to I2C SDA and I2C SCL pins but didn't get any output.
Edit2: The picture about the Nucleo board is not an STM32F303, I do have an STM32F303, it's only there, to show the pinout.
Edit: Pic of the board configuration in Arduino IDE: