RED HAT
DIIDevHeads IoT Integration Server
•Created by Boss lady on 7/2/2024 in #middleware-and-os
How do I set the I2C (Mpu-6050) slave address in my application?
@Boss lady Another thing to consider is permissions. Make sure you have the necessary permissions to access the I2C bus. If you're running your application as a non-root user, you might encounter this error. You can try running your application with sudo to see if that resolves the issue. Here's a modified version of your code with the updated address:
Also, ensure you have the I2C device open correctly:
7 replies