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

marcushh777    Cool

please join us for a chat @   or ssl

( I regret that I am not able to respond to personal messages;  let's meet on irc! )

Messages In This Thread
RE: Configuring Python GPIO Pin Control Rock64 - by MarkHaysHarris777 - 11-03-2017, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to enable ES9023-based DAC hat on Rock64? lowry 2 215 03-18-2021, 03:44 PM
Last Post: zborgerd
  1wire DS18b20 on Rock64? mypineme 3 1,184 02-10-2021, 11:21 AM
Last Post: TRS-80
Heart Best quick/easy way to control case fan speed? idillicah 1 824 12-15-2020, 04:57 PM
Last Post: kidfrostbite
  Display options for the Rock64 joey49 1 701 11-23-2020, 09:52 AM
Last Post: joey49
  Help connecting a dvb board in the right gpio pins cosmodeal 0 451 11-11-2020, 12:48 PM
Last Post: cosmodeal
Question UARTs from GPIO headers maks.dav 3 1,058 10-30-2020, 07:44 AM
Last Post: maks.dav
  Are HW design files available for ROCK64? irenek 1 1,066 09-29-2020, 05:57 PM
Last Post: tllim
  No sound from Rock64 DAC codebreaker 2 1,010 09-29-2020, 02:14 PM
Last Post: codebreaker
  Which Voltage and Amper to supply both Rock64 + External drive enclosure ? prog-amateur 0 951 08-21-2020, 09:16 PM
Last Post: prog-amateur
Information Rock64 RTL8188EU Wifi Adapter from Pine Store Tested Well MarkHaysHarris777 7 4,667 05-13-2020, 06:00 PM
Last Post: Leon Rembowski

Forum Jump:

Users browsing this thread: 1 Guest(s)