PINE64
RPi.GPIO python module for Pine A64/A64+ - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: Pi2, Euler and Exp GPIO Ports (https://forum.pine64.org/forumdisplay.php?fid=34)
+---- Thread: RPi.GPIO python module for Pine A64/A64+ (/showthread.php?tid=723)

Pages: 1 2 3 4 5 6 7 8 9 10


RPi.GPIO python module for Pine A64/A64+ - aquilegia - 04-22-2016

I just ported RPi.GPIO python module for Pine A64/A64+.
You can download the package from https://github.com/swkim01/RPi.GPIO-PineA64.
Thank to joey for gpio pin information.
However, the event detect function was not operated yet.
I guess the kernel's gpio driver has to be modified to enable gpio interrupts.


RE: RPi.GPIO python module for Pine A64/A64+ - marco97pa - 05-04-2016

I tried to install it. During the installation, it gived to me an error:
"Python.h cannot found file or directory"
I am sure to have Python installed, because if I write "python" in terminal, it returns me the version


RE: RPi.GPIO python module for Pine A64/A64+ - martinayotte - 05-04-2016

You need to have also "python-dev" package


RE: RPi.GPIO python module for Pine A64/A64+ - marco97pa - 05-10-2016

(05-04-2016, 08:29 AM)martinayotte Wrote: You need to have also "python-dev" package
Thanks for help! I have already tried it and I have switched on a LED. [emoji6]


RE: RPi.GPIO python module for Pine A64/A64+ - PallStar - 05-26-2016

Does this RPi.GPIO also support DMA access? I want high speed access so I can control a Neopixel light bar.

Just looked at the Readme... No PMW access.... Drat.... OK. I will have to wait on info for this because the DMA access is for the PMW.

Maybe I can get my hands on the PMW/DMA version of the RPi.GPIO and see what I can do to have it work on the Pine.

Thank you for the port though. This might help me figure a few things out.

(05-26-2016, 03:21 PM)PallStar Wrote: Maybe I can get my hands on the PMW/DMA version of the RPi.GPIO and see what I can do to have it work on the Pine.

Thank you for the port though. This might help me figure a few things out.

For reference, I am looking at this code. Time to get my hands dirty and learn the code.
Penfold42's PRi PWM port for RPi.


RE: RPi.GPIO python module for Pine A64/A64+ - aminhb - 05-30-2016

(04-22-2016, 12:39 AM)aquilegia Wrote: I just ported RPi.GPIO python module for Pine A64/A64+.
You can download the package from https://github.com/swkim01/RPi.GPIO-PineA64.
Thank to joey for gpio pin information.
However, the event detect function was not operated yet.
I guess the kernel's gpio driver has to be modified to enable gpio interrupts.

Confirmed! works like a charm - thanks mate


RE: RPi.GPIO python module for Pine A64/A64+ - Informatica - 05-30-2016

Great work!! I'll try it as soon ad possible


RPi.GPIO python module for Pine A64/A64+ - RaspiBit - 05-30-2016

Using this ported software, could I control a LedBorg that I used on my raspberry pi?


RE: RPi.GPIO python module for Pine A64/A64+ - igna09 - 06-10-2016

Hi, i've installed this library but i'm not able to turn on a led. This is my code from python shell:

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(20, GPIO.OUT) //i don't know if this is the right number for the pin 38
GPIO.output(20, True)

What i'm wrong?


RE: RPi.GPIO python module for Pine A64/A64+ - marco97pa - 06-10-2016

(06-10-2016, 04:06 AM)igna09 Wrote: Hi, i've installed this library but i'm not able to turn on a led. This is my code from python shell:

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(20, GPIO.OUT) //i don't know if this is the right number for the pin 38
GPIO.output(20, True)

What i'm wrong?

The code seems correct. Some pin cannot be selected (for example 1, 2...). Try with pin 3 to be sure.