RPi.GPIO python module for Pine A64/A64+
#1
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.
  Reply
#2
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
  Reply
#3
You need to have also "python-dev" package
  Reply
#4
(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]
  Reply
#5
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.
  Reply
#6
(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
  Reply
#7
Great work!! I'll try it as soon ad possible
  Reply
#8
Using this ported software, could I control a LedBorg that I used on my raspberry pi?
  Reply
#9
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?
  Reply
#10
(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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 2 4,752 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 3,546 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 10,956 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,044 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,755 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,160 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 14,586 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 20,938 08-17-2017, 01:21 PM
Last Post: martinayotte
  Cross-wired Uart Ports between two Pine Boards via Cat5 Cable MarkHaysHarris777 10 15,728 11-20-2016, 04:17 AM
Last Post: pfeerick
  GPIO fiq capability joseph 3 6,011 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 3 Guest(s)