This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO usage over Android
Hi all,

I need to use the TinkerBoardS GPIO pins from Android. I have seen the the C++ and Python libraries, but they use the /sys/class/gpio/... , and the Android app does not have permissions to access these files. Is there any JAVA or Kotlin library to access and read/write the /dev/gpiomem?

Thank you very much,
You can take a look here:
You would need to add jni support to your Android Studio project and use the wpi_android.c. You can precompile the library and import it or let Android Studio compile it. I never used Kotlin, but I think you can find how to integrate the library into your project like my example with Java.

Forum Jump:

Users browsing this thread: 1 Guest(s)