-
Notifications
You must be signed in to change notification settings - Fork 359
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
add support for orangepi 3b #894
Conversation
can anyone tell me why the test is not passed? |
The easiest thing to do is run pre-commit locally. It'll automatically fix the formatting. Instructions are here: https://learn.adafruit.com/improve-your-code-with-pylint/check-your-code-with-pre-commit |
modify i2c2_m0 to i2c2_m1 add some definition for i2c
Fail to install pre-commit in my Win10. pre-commit run --all-files |
Can anyone replace me to commit this code? |
I ran pre-commit and committed the resulting changes. I'm not sure what the root cause of the error you posted is. If you have the option, and you still want to get it working locally it may be worth trying a newer python version like 3.11 or 3.12. |
thanks very much. |
The second question: is there any guide when I commit to board / microcontroller definition? |
Remark: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would want to find a way to make the changes to the rk3566/pin.py file compatible with all devices instead of commenting out the old one for the new one.
this is a common thing for all rockchip microcontrollers. ‘’‘ the boards use the same controller do not have the same i2cPorts definition. This problem does not only affact OrangePi3B, radxacm3 and RK3566. Maybe some way to override i2cPorts in board definition files can solve this problem. |
I noticed in the pins file for the rk3588 that there are sometimes multiple ports listed under the same numbers: Adafruit_Blinka/src/adafruit_blinka/microcontroller/rockchip/rk3588/pin.py Lines 238 to 241 in 9441d12
@landall can you try just including the new port along with the existing ones without commenting anything out like this: (1, I2C1_SCL, I2C1_SDA),
(2, I2C2_SCL_M0, I2C2_SDA_M0),
(2, I2C2_SCL_M1, I2C2_SDA_M1), See if that works on your orangepi 3b device and if so add a commit to uncomment the existing definition and add the new one without removing anything. |
stored the wrongly commented lines to define 2 I2C port with the same channel id.
It works! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
No description provided.