How do I set the I2C (Mpu-6050) slave address in my application?
@Middleware & OS Hello Guys, how do I set the I2C (Mpu-6050) slave address in my application, am getting the error
here's my code below
Failed to acquire bus access and/or talk to slave: Input/output error but i have Checked the wiring and confirmed the slave device address.here's my code below
Solution
Thanks everyone!, I didn't realize the address for the MPU-6050 was different. I changed the address to 0x68 and now my code looks like this:
I ran it with sudo and it worked! Thanks again for your help!
I ran it with sudo and it worked! Thanks again for your help!