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 3 LTS #9

Open
Woszczek opened this issue Sep 6, 2023 · 3 comments
Open

Orange Pi 3 LTS #9

Woszczek opened this issue Sep 6, 2023 · 3 comments

Comments

@Woszczek
Copy link

Woszczek commented Sep 6, 2023

Hi, I installed this lib on my Orange Pi 3 LTS and for instance when I used example code blink_led.py I changed setboard to GPIO.PI3 and code worked witout error but also without impact on GPIO, when I used lib from this https://github.com/orangepi-xunlong/wiringOP and used bash or C, all working properly, Could you help and write what I can do to setup GPIO with Python on Orange Pi 3 LTS?

@schrill
Copy link

schrill commented Nov 3, 2023

Simply put it compiles, but it does not work, same issue on PC2

@Woszczek
Copy link
Author

Woszczek commented Nov 5, 2023

Simply put it compiles, but it does not work, same issue on PC2

Maybe it can help you, for my Orange Pi 3 LTS I use a Python program that runs C threads, I installed this lib https://github.com/orangepi-xunlong/wiringOP and I am using C to control GPIO but there https://3kinvention.pl/kurs-django-robot-3/ is written (in Polish but you can easy translate to English) how to write function in python to control GPIO (with a not too high frequency) based on these libraries for C

@schrill
Copy link

schrill commented Nov 5, 2023

Tnx, I'm ussing wiringPi for manual testing, but
I've moved to OPi.GPIO 0.53, that library still has official support. It does not differ that much from OrangePi.GPIO, so you might easily switch any code that you have typed with little to no hustle.
Simply use the following as reference:
https://github.com/rm-hull/OPi.GPIO/blob/master/orangepi/pi3.py
https://github.com/rm-hull/OPi.GPIO/blob/master/OPi/GPIO.py
I've used it for gpio and hw pwm (no soft). Haven't checked to see if it has anything more complex like eg. I2c, uart, spi etc. implemented though.
Use this for non root access
https://github.com/beagleboard/customizations/tree/master/etc/udev/rules.d
Hope this helps you out.

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