Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong i2c bus number on Raspberry Pi model B+ #12

Open
dalathu opened this issue Dec 16, 2017 · 2 comments
Open

Wrong i2c bus number on Raspberry Pi model B+ #12

dalathu opened this issue Dec 16, 2017 · 2 comments

Comments

@dalathu
Copy link

dalathu commented Dec 16, 2017

Hello,

I have used the new installation script (commit 056305b) in my Raspberry Pi model B+. It does not work due to that the pifacertc script tries to configure the wrong i2c bus number, i.e. 0 instead of 1.
On my Raspberry pi, the i2c bus device is /dev/i2c-1.

Output of /proc/cpuinfo:

$ grep "Revision" /proc/cpuinfo  
Revision        : 0010

I have solved the issue by modifying the 2 following lines in the file /etc/init.d/pifacertc:

i2cset -y 1 0x6f 0x08 0x47

and

echo mcp7941x 0x6f > /sys/class/i2c-dev/i2c-1/device/new_device
@csoutreach
Copy link

Thanks -- we'll be posting an updated version that should fix this soon.

@sadilekivan
Copy link

sadilekivan commented Oct 31, 2020

Hello,

The same issue occurs on a Raspberry Pi Zero W V1.1 from 2017, changing to i2c-1 worked, just wanted to add it here as a note.

Thanks for the script, I was firstly discouraged and tried many other solutions, which did not work in the end. But after all that tinkering I learned a lot and realized what the issue was.

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

No branches or pull requests

3 participants