11-03-2017, 07:30 PM
(This post was last modified: 11-03-2017, 07:31 PM by MarkHaysHarris777.)
(10-31-2017, 09:49 AM)www139 Wrote: I haven't had experience working with GPIO but it appears I need to find a Python GPIO pin library to control the GPIO pins on the Rock64 for the project I'm developing. What libraries do you (the community) think I should use for GPIO pin control on my Rock64? Depending on standardization, it seems a library should be on the documentation page for the board.
At the moment you have two options: 1) write your own wrapper for /sys/class/gpio/ either in python or C for use with python, or 2) port the RPi.GPIO-PineA64 package for use with the Rock64 in Python. Option (2) needs to be done by someone ( might as well be you ).
The RPi.GPIO-PineA64 package is a port of the Raspberry PI Python GPIO written for the RPi3. Its open source on git and should be fairly easy to port for use on the Rock64. The C portions are going to be very very similar; what will differ is the base address and the calculations for offsets ( pad addresses ). You will want to crosscheck with the Technical Reference Manual Part I, and the datasheets for the RK3328.
![Shy Shy](https://forum.pine64.org/images/smilies/shy.png)
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
![Cool Cool](https://forum.pine64.org/images/smilies/cool.png)
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )