pine64 SDK/library
is there some library for pine64 like what Rpi has where you can read and write information to the io ports?  I believe there is I just couldn't find it.
(05-28-2016, 07:38 AM)martinayotte Wrote:

Looks cool, could you maybe give a rough tutorial? Smile
Excellent - many people asking about GPIO
You can find me on IRC, Discord and Twitter

Here is a quick example of GPIO LED Blinker :

import RPi.GPIO as GPIO
LED_PIN = 26
while 1:
Is modification of GPIO via /sys/class/gpio not supported?

I'm trying to setup GPIO 17 as an output.

I can successfully export 17 as a GPIO, but then when I go to that directory ("gpio17") and try to set its direction, I get "Unknown error 517".

I only have a couple GPIO that I need to use, so I'm wondering if the whole library is worth it, but if there's no other way...maybe I'll have to use it?
You're right ! It seems that there is an issue there.
When I get chance, I will try to investigate ...
(In the mean time, you should probably use the Python library from
Doing some searches, I found out the cause of the issue : since awhile, the pin numbering scheme in /sys/class/gpio has changed !

See :
Also, here on the forum :

On Pine64, the GPIO17 is attached to PC7, so, for the /sys/class/gpio, the numbering would be :

('C' - 'A') * 32 + 7
2 * 32 + 7 = 71

You can now give it a try with :

echo "71" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio71/direction
echo 1 > /sys/class/gpio/gpio71/value
That's great news!
Thanks for sharing.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Wi-Fi/Bluetooth for PINE64, Model: Sopine A64 lamson 0 134 08-24-2021, 08:17 AM
Last Post: lamson
  AC Adapter Which One? Pine64 A64 DB V1.1 2GB REV B (Year 2016) databaseprogrammer 2 617 06-17-2021, 05:35 AM
Last Post: kqlnut
  Default Password for New Pine64 KDE Plasma CE? robertb1 3 1,625 02-01-2021, 04:29 PM
Last Post: cybercricket
  Just discovered Pine64 ! - first Q philip_rhoades 4 2,824 04-29-2020, 10:13 AM
Last Post: tophneal
  A newest user in Pine64 Aliko 1 1,942 04-19-2020, 10:33 PM
Last Post: tllim
  PINE64 Installer - Simple Way to Image Your MicroSD pineadmin 101 90,263 01-15-2020, 12:46 PM
Last Post: tophneal
  Emails from pine64 received as spam by gmail Matan 2 2,155 08-21-2019, 08:30 AM
Last Post: Leiaz
  How to handle a Pine64 correctly gbjensen 6 10,849 03-28-2019, 11:43 PM
Last Post: InsideJob
Information Creating a NAS server in Pine64 javi_cala 4 4,979 01-21-2019, 02:03 AM
Last Post: bartes
  The 6 most common reasons why Pine64 won't boot Andrew2 109 131,354 10-11-2018, 11:35 PM
Last Post: Technolab88

Forum Jump:

Users browsing this thread: 1 Guest(s)