A20 - lime reading GPIO - support

Started by yurin, October 20, 2014, 09:28:48 AM

Previous topic - Next topic

yurin

Hello,

I have A20 - lime running on debian
I write App in java using eclipse
I am trying to read/write to GPIO-3 with java
How can it be done ? is there any example for it?

Thanks in advance, Yuri.

dave-at-axon

Have a look at this JNI for Android.

I believe you need to do this JNI when using Java to access IO.

http://sourceforge.net/p/friendlyarmgpio/code-0/HEAD/tree/jni/AxonIO/

amaglio.c

Hello,
i'm interested in using GPIO (I2C, UEXT) from java on Debian (not Android), but i can't find a simple (but complete) example.

Carlo,

dave-at-axon

Maybe this will help?

https://packages.debian.org/sid/libjna-java

As you need access to the native drivers you need a JNI to do this but the above may be an alternative.

I don't use or programme under Debian but the use of JNI in Android seems to be the same.