Page 1 of 1

NAnoPi K2 linux GPIO layout?

Posted: Thu May 31, 2018 6:58 am
by remis
Hello,

I'd like to connect button LED ... to GPIO. I d'ont have the gpio unix name.
For example we can see it in the array for Neo board :
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2 ''linux GPio''
I dont see this information in :
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_K2
Thus I don"t know how to use direct commands like :

echo "in" > /sys/class/gpio/gpioXXX/direction

Other solution : use the library :
http://wiki.friendlyarm.com/wiki/index. ... edirect=no
But K2 seem not to be supported:
https://github.com/friendlyarm/WiringNP ... 4b3516fd75

The question is simple : how to have gpio number/position information? I dont see it in schematic.

My initial aim is to use the power key button to halt K2 board without any display.

Thanks for your help

Re: NAnoPi K2 linux GPIO layout?

Posted: Sun Sep 23, 2018 9:27 pm
by JimG
I had the same problem. Here is the pin layout I came up with:

nano_pi_k2-pinout.jpg
nano_pi_k2-pinout.jpg (81.34 KiB) Viewed 12992 times