03-22-2019, 04:41 PM
(03-22-2019, 04:14 PM)dkryder Wrote: you might want to take a look at this
https://github.com/fadedreamz/R64.GPIO
which is a gpio library for the rock64. i have not read if this works on a pro or if someone has ported to the pro. but, anyway, are you using the rpi.gpio library on the pro? if so, i doubt that will work or work well. i guess you could try it by changing this
import RPi.GPIO as GPIO
to this
import ROCK.GPIO as GPIO
be sure to put R64.GPIO in the proper folder
let us know how it works out.
otherwise maybe contact blinkt and tell them you want to run their stuff on a pro and ask for their help. good luck!
Thanks I checked out the code and its still using the /sys/class/gpio interface
def set_value(self, channel, value):
base_syspath = "/sys/class/gpio"
base_gpio_value = "{}/gpio{}/value".format(base_syspath, channel)
so this is not going to perform any better than
https://github.com/Angoosh/RockPro64-RP64.GPIO
I am looking through the Raspberry PI 3 code to see how they do it and Ill see if I can rework the code