Page 1 of 1

nanopi 3 GPIO - Java or Python

Posted: Fri Mar 29, 2019 9:00 am
by dvoeckler
Hi everybody,

i have searched the internet for hours and tried quite a bit of things to get the GPIOs on the Nanopi 3 working on Lubuntu.

The RPi.GPIO_NP seems only to be preinstalled on the friendlyarm but not on Lubuntu.

If you have any ideas how to get the GPIOs working on Java or Python i would be really happy.

Things clear are:
i. Offset of GPIOA-GPIOE
ii. Programming in generall

Re: nanopi 3 GPIO - Java or Python

Posted: Fri Mar 29, 2019 9:41 am
by dvoeckler
Hi Everyone,

just another info - wiringPi Np is not supporting the NanoPi3.
Any ideas what could be used?

Re: nanopi 3 GPIO - Java or Python

Posted: Mon Apr 01, 2019 4:52 pm
by dvoeckler
good support! amazing!

Re: nanopi 3 GPIO - Java or Python

Posted: Tue Apr 02, 2019 12:13 am
by v8dave
For Java, you could use the same technique used in Android but I am not sure how to create a JNI outside of the Android development environment.

https://github.com/davemclaughlin/GPIOdriver

I use this custom library to do basic GPIO and I2C under Android 5.1 or higher.