OrangePiLibra / WiringPi

The WiringPi on OrangePi
GNU Lesser General Public License v3.0
58 stars 29 forks source link

Update wiringPiI2C.c #9

Open MykhailoZhyhariev opened 6 years ago

MykhailoZhyhariev commented 6 years ago

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.