Open paolov opened 4 years ago
Just to confirm that at the end it works perfectly initializing to address 69. It was me making a mistake. To recap, to make it working on RPi4 you have to change the folder to /dev/i2c-1 and use address accordingly to i2cdetect (69 in my case)
That's good to know, thanks for debugging the problem!
On Sun, Oct 13, 2019 at 10:13 PM Paolo Vigori notifications@github.com wrote:
Just to confirm that at the end if works perfectly initializing to address
- It was me making a mistake. To recap, to make it working on RPi4 you have to change the folder to /dev/i2c-1 and use address accordingly to i2cdetect (69 in my case)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/richardghirst/PiBits/issues/117?email_source=notifications&email_token=AAN5RMMMO6AYBUHT2RJDWHTQOOFPVA5CNFSM4JAIT3P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDAO5Q#issuecomment-541460342, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN5RMKLZIM5ZXBOROTUBTLQOOFPVANCNFSM4JAIT3PQ .
I compiled the MPU6050-Pi-Demo code after changing to /dev/i2c-1 (otherwise I was getting "Failed to open device: Is a directory") and now I'm getting the error "Failed to write reg: Remote I/O error". Here is the log:
I can access the mpu with c# without problem at address 69 instead of 68 so I tried to initialize the mpu to address MPU6050_ADDRESS_AD0_HIGH but I'm getting the same error. Here the result of i2cdetect -y 1