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
nano_pi_k2-pinout.jpg (81.34 KiB) Viewed 12054 times

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests