PINE64

Full Version: RPi.GPIO python module for Pine A64/A64+
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
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.
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
You need to have also "python-dev" package
(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]
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.
(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
Great work!! I'll try it as soon ad possible
Using this ported software, could I control a LedBorg that I used on my raspberry pi?
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?
(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.
Pages: 1 2 3 4 5 6 7 8 9 10