Python GPIO Library for the Rock64 (R64.GPIO) - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86) +--- Thread: Python GPIO Library for the Rock64 (R64.GPIO) (/showthread.php?tid=5902) |
RE: Python GPIO Library for the Rock64 (R64.GPIO) - ElRobbo - 05-17-2018 Hey all - I was referred here by lukasz after posting this thread wondering about using an RPi GPIO-based LCD screen. Would installing the python GPIO library help with their drivers, which seem to be RPi-specific binaries? It seems to me they're apples and oranges, but I'm not a low-level h/w or s/w guy, so... I just want a small display to show me what's happening during boot of an otherwise headless system. RE: Python GPIO Library for the Rock64 (R64.GPIO) - ubidots - 07-04-2018 (04-08-2018, 04:11 AM)i69fstop Wrote: Hi @Leapo Hi, I had rock64 4.4.77 image. I faced the same issue with python GPIO lib. So I tried upgrading with "sudo apt-get upgrade" and sudo apt-get dist-upgrade". After when I tried to reboot, it wasn't booting up. Can you please share the link of the OS which is working for python GPIO library. Regards RE: Python GPIO Library for the Rock64 (R64.GPIO) - gaggleoxfoggy - 08-06-2018 Add me to the "interested but not working" list. Debian Stretch 4.4.124, tried the original and the AnythingIsFine version that was edited for newer kernels. Still the same errors, unable to export GPIO and unable to set GPIO direction. RE: Python GPIO Library for the Rock64 (R64.GPIO) - gaggleoxfoggy - 08-06-2018 Actually, I just got it working using AnythingIsFine's modified version. For anyone else having issues (and maybe this was mentioned and I just missed it), try running it as root. RE: Python GPIO Library for the Rock64 (R64.GPIO) - pas059 - 08-08-2018 Hi, using informations found on this forum, i made a little app in C++ to use gpio lines. This works, but root is required, which is embarrassing. I tried to add my user (rock64) on the sudo group as i've read elsewhere (§sudo usermod -a -G sudo rock64 ), but this has no effect. Someone knows a solution to use gpio app (that uses sysfs) outside root? or another method to use gpio lines than sysfs which does not requires root? regards RE: Python GPIO Library for the Rock64 (R64.GPIO) - mcerveny - 08-22-2018 Can you enhance and register package to "pypi" ? Like: https://pypi.org/project/RPi.GPIO/ https://pypi.org/project/Adafruit-GPIO/ https://pypi.org/project/OPi.GPIO/ https://pypi.org/project/OrangePi.GPIO/ Can you enhance build to debian binary package and distribute over ayufan ppa ? Like: https://packages.debian.org/buster/python-rpi.gpio https://packages.debian.org/buster/python3-rpi.gpio https://packages.debian.org/buster/rpi.gpio-common (08-08-2018, 09:10 AM)pas059 Wrote: Someone knows a solution to use gpio app (that uses sysfs) outside root? or another method to use gpio lines than sysfs which does not requires root? Yes, possible. First, choose the group, "dialout" is recommended not "sudo". Code: $ ### test default situation RE: Python GPIO Library for the Rock64 (R64.GPIO) - fadedreamz - 09-19-2018 Hi everyone, I came across the library while trying to work with gpio on rock64 in python. However, I couldn't use the library due to licensing issue (yes, it is a commercial prototype) and the add_event_detect() feature was missing (to easily detect button press). So, I reimplemented the R64.GPIO as a seperate repo in github (https://github.com/fadedreamz). In my testing the initial results are good enough as it consumes very little cpu cycle to detect the key press event (no busy wait). Right now if you want to do GPIO input output with event_detect() the library is able to handle them pretty good. I am still missing many feature as I never used RPi.GPIO (as my C skills >>>> my python skills). Right now, PWM is not implemented. For Pull Up/Down, right now the default settings are used (whatever it is initialized to) and will fix it as soon as I can enable it in the hardware. Any feedback from you guys are appreciated and will be used to improve the library (as I will have the rock64 for quite some time). RE: Python GPIO Library for the Rock64 (R64.GPIO) - mcerveny - 09-20-2018 (09-19-2018, 11:37 PM)fadedreamz Wrote: However, I couldn't use the library due to licensing issue (yes, it is a commercial prototype) ...Why ? It is LGPLv3 (not GPL). RE: Python GPIO Library for the Rock64 (R64.GPIO) - fadedreamz - 10-09-2018 (09-20-2018, 12:58 PM)mcerveny Wrote:(09-19-2018, 11:37 PM)fadedreamz Wrote: However, I couldn't use the library due to licensing issue (yes, it is a commercial prototype) ...Why ? It is LGPLv3 (not GPL). Hmmm, maybe I could have used it. However, I didn't know how it play with Python (library linking and other stuff). But, I am guessing based on your response, that it might be possible. Maybe should have read more carefully. RE: Python GPIO Library for the Rock64 (R64.GPIO) - pantera - 10-24-2018 is there still no support for interrupts? does the OS not support this? polling for GPIO is extremely inefficient. |