I use wiringPiI2C to work with the MPU6050 module and ran into a problem - the wiringPiI2CSetup function returned an error when initializing. I realized that my MPU6050 module is connected to "i2c-2" and the function can not pass the correct argument to the wiringPiI2CSetupInterface function.
I decided to use the wiringPiI2CSetupInterface function without wiringPiI2CSetup wrapper and it worked.
I use wiringPiI2C to work with the MPU6050 module and ran into a problem - the wiringPiI2CSetup function returned an error when initializing. I realized that my MPU6050 module is connected to "i2c-2" and the function can not pass the correct argument to the wiringPiI2CSetupInterface function. I decided to use the wiringPiI2CSetupInterface function without wiringPiI2CSetup wrapper and it worked.