MPU6050_light
MPU6050_light copied to clipboard
Issue with ESP32
I connected MPU6050 in the default pins of SCL and SDA in ESP32 (GPIO 21 and GPIO 22). In the first time, ran smoothly right the example code. But when I adapted the library to my project code, simply the library stopped work. I've tried again run the code of example to test again, but w/o success — like the library doesn't find the SCL and SDA pins.
I already check out the hex address code of the sensor pins in ESP32 and it's right like in the library (0x68), so idk what's the problem or how solve it.
I just thought in set the pins when calls MPU6050 mpu(Wire);
but idk how to do this.