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
  Are HW design files available for ROCK64? irenek 3 5,310 12-11-2023, 09:31 PM
Last Post: tllim
  Rock64 is unreliable after 3 years of service - power problem? ReleaseTheGeese 0 408 11-23-2023, 05:05 AM
Last Post: ReleaseTheGeese
  Rock64 PoE compatbility with Pi4 Hatt recent Single Board Computer offering from PINE kharak 1 1,173 04-26-2023, 11:38 PM
Last Post: tllim
  Case for the rock64 that supports the POE hat. o1CRiMSON1o 0 677 03-21-2023, 03:48 PM
Last Post: o1CRiMSON1o
Brick Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes MarkHaysHarris777 6 13,560 01-15-2023, 10:36 AM
Last Post: ds00
  rock64 totally brick dakobg 2 1,882 11-07-2022, 05:45 PM
Last Post: olivercfc
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 2 3,652 08-04-2022, 01:31 AM
Last Post: Vicky Weimann PhD
  Where can I find the ROCK64 POE HAT Zoz 2 2,778 06-08-2022, 12:44 AM
Last Post: Zoz
Smile wooden case for ROCK64 killor 13 16,975 03-04-2022, 06:56 AM
Last Post: killor
  1wire DS18b20 on Rock64? mypineme 6 7,292 09-28-2021, 03:07 PM
Last Post: TRS-80

Forum Jump:

Users browsing this thread: 1 Guest(s)