-
Notifications
You must be signed in to change notification settings - Fork 26
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
RPI_REVISION Method of GPIO Breaks flicklib.py When Using RPI Compute Module 3+ #56
Comments
Hi @MXGray , I'll look into fixing this and should be easy to do. However at the same time this does vary based on what board you are using for the compute module? With the CMIO you'd be wiring the pins directly so could physically change them. But was wondering what host board you're using? |
Hi @ryanteck , Host is Raspberry Pi Compute Module 3+ ... And I'm using these components to develop an artificial 3D perception system for blind users like myself. https://www.youtube.com/watch?v=mDHOSRhRbsQ Cheers! :) |
Just had a look on one of my compute modules and I guess the issue is that as the Compute Module doesn't have any fixed GPIO to PIN mapping. However I suspect most compute modules use the Rev 2 or 3 pinouts so I've changed it to be unless it's a model 1 to try it out. If you try re-installing and report back to me if it's fixed it that'd be great. |
Looked at the RPi.GPIO source. For Compute Module 1, 3 and 3+ GPIO.RPI_REVISION returns 0. For flicklib the check GPIO.RPI_REVISION == 1 is OK for using i2c-0 instead of i2c-1. |
I've done a commit earlier that does this @tvoverbeek , as the only model of Pi which uses i2c-0 on pins 2 & 3 is the Rev 1 B it made more sense to have it where unless it was that to say that the I2C is used is I2C1 unless it is a Rev 1. For compute modules it reports 0, for Rev 1 B it reports 1, Rev 2 B it reports 2 and All 40 pins after have been the same so report 3 so it makes more sense to have it do it this way rather than if it matches everything not 1. |
@ryanteck Agree completely with you. |
It's detecting RPI CM3+ as '/dev/i2c-0'
...
Instead of '/dev/i2c-1'
...
The text was updated successfully, but these errors were encountered: