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

How exactly to port this library? #38

Open
Hazeline2018 opened this issue Jan 29, 2019 · 1 comment
Open

How exactly to port this library? #38

Hazeline2018 opened this issue Jan 29, 2019 · 1 comment

Comments

@Hazeline2018
Copy link

Hazeline2018 commented Jan 29, 2019

I'm fairly new to this domain, so please bear with me with some "so obvious to you" questions. :-)
This is a drop-in replacement lib for RPi.GPIO. But how exactly should I port this new lib for OPi? Should I install RPi library first as normally would do, then install this new lib as described in doc $ sudo pip install --upgrade OPi.GPIO? Thanks!

@rm-hull
Copy link
Owner

rm-hull commented Jan 29, 2019

You don't need to install the RPi.GPIO library first, just do the pip install.

I originally wrote the library so that I could use existing code (that used RPi.GPIO) on the Orange Pi Zero without having to change to much of the internals. This is why there are BCM mappings. If you are embarking on a new idea just for OPi, then I would suggest you just target the SUNXI mappings (or whichever are appropriate for your device - note that other folks have contributed mappings for a few other SBCs)

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