Power & Source of Big Ideas

NAnoPi K2 linux GPIO layout?

Moderators: chensy, FATechsupport

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
I had the same problem. Here is the pin layout I came up with:

nano_pi_k2-pinout.jpg

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 102 on Mon Oct 08, 2018 12:42 pm

Users browsing this forum: No registered users and 1 guest