Skip to content

Conversation

@MykhailoZhyhariev
Copy link

@MykhailoZhyhariev MykhailoZhyhariev commented Mar 30, 2018

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.

Without fix the function doesn't work when you connect device in 'i2c-2'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant