Open Woszczek opened 1 year ago
Simply put it compiles, but it does not work, same issue on PC2
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
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.
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?