Page 1 of 1

GPIO/SPI development API on NanoPi A64/Ubuntu-core

Posted: Sun Mar 25, 2018 11:17 pm
by nanard
I've got a NanoPi64 and made it run the Ubuntu core from nanopi-a64_friendlycore-xenial_3.10.65_20180207.img
I need to communicate with devices plugged on SPI bus on the GPIO pins 19/21/23 and 24/26.
Which API is available ?

I previously developped on RPi with the BCM2835 C library http://www.airspayce.com/mikem/bcm2835/
but I could use any C library.

Thanks !

Re: GPIO/SPI development API on NanoPi A64/Ubuntu-core

Posted: Thu Mar 29, 2018 9:45 am
by nanard
I'm looking at the /sys/class/gpio because I've not found anything better.
But how to know which gpio number map to the NanoPi-A64 GPI header pins ?