Configuring Python GPIO Pin Control Rock64
#1
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.

Thank you.
  Reply
#2
(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
marcushh777    Cool

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! )
  Reply
#3
Has the porting process / task been done as of today since you posted that going on... wow, 4 years ago now.

I would hope so... I was hoping to play with some pins tonight.
  Reply
#4
https://github.com/mrfixit2001/Rock64-R64.GPIO
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  1wire DS18b20 on Rock64? mypineme 6 1,979 09-28-2021, 03:07 PM
Last Post: TRS-80
Information How to Setup Serial Console Cable Over the Rock64 SBC MarkHaysHarris777 9 21,335 09-28-2021, 10:52 AM
Last Post: lewiscamron72
  Rock64 4K60P HDR Media Board Computer 64 bit MarkHaysHarris777 8 9,851 07-14-2021, 11:52 PM
Last Post: jontumontu
  Any way to tell the rock64's hardware revision? kittyland 1 648 07-01-2021, 09:42 PM
Last Post: evilbunny
Heart Best quick/easy way to control case fan speed? idillicah 4 2,067 06-24-2021, 09:14 AM
Last Post: CounterPillow
  POE support for the Rock64 v3 h64poe 0 562 05-30-2021, 07:40 AM
Last Post: h64poe
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 1 836 05-21-2021, 05:44 PM
Last Post: tllim
  How to enable ES9023-based DAC hat on Rock64? lowry 2 1,125 03-18-2021, 03:44 PM
Last Post: zborgerd
  Display options for the Rock64 joey49 1 1,596 11-23-2020, 09:52 AM
Last Post: joey49
  Help connecting a dvb board in the right gpio pins cosmodeal 0 999 11-11-2020, 12:48 PM
Last Post: cosmodeal

Forum Jump:


Users browsing this thread: 1 Guest(s)