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

orange pi zero 2 no /dev/i2c-* #61

Closed
DavidVorick opened this issue Jan 7, 2023 · 3 comments
Closed

orange pi zero 2 no /dev/i2c-* #61

DavidVorick opened this issue Jan 7, 2023 · 3 comments

Comments

@DavidVorick
Copy link

I am trying to use the GPIOs on the Orange Pi Zero 2, specifically the i2c pins. When I look at /dev/, I see /dev/i2c-0 (which is for HDMI), but I do not see any other i2c options.

I read through the manual (https://linux-sunxi.org/images/7/72/OrangePi_Zero2_H616_User_Manual_v1.0.pdf) and set up wiringOP, but got stuck because it still could not find /dev/i2c-3 or /dev/i2c-5.

How do I configure the build so that I can use i2c?

@leeboby
Copy link
Contributor

leeboby commented Jan 7, 2023

If the Linux5.16 image is used, please add overlays=i2c3 in /boot/orangepiEnv.txt.

orangepi@orangepi:~$ sudo vim /boot/orangepiEnv.txt
overlays=i2c3

There is no i2c5 for zero2 in 26pin.

@DavidVorick
Copy link
Author

I am happy to confirm that this solved the issue for me, my i2c is now working as hoped.

Is there some place I should have looked in the documentation?

@leeboby
Copy link
Contributor

leeboby commented Jan 7, 2023

https://drive.google.com/drive/folders/1ToDjWZQptABxfiRwaeYW1WzQILM5iwpb

图片

图片

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

2 participants