Title: FirePrime-RK3128 Android app use jni to control GPIO code [Print This Page] Author: Firefly Time: 10/12/2015 17:11 Title: FirePrime-RK3128 Android app use jni to control GPIO code Sharing by carlinluo
// The runtime will add "lib" on the front and ".o" on the end of
// the name supplied to loadLibrary.
System.loadLibrary("app");
}
public native int add(int a, int b);
public native int openGpioDev();
public native int closeGpioDev();
public native int getGpio(int num);
public native int releaseGpio(int num);
public native int setGpioState(int num,int state);
}
Copy the code
Wrote a simple app, you can control GPIO by the following method , DO remember to give permissions to driven node first.
adb root ->adb shell chmod 777 dev/luobogpio
public native int openGpioDev();
public native int closeGpioDev();
public native int getGpio(int num);
public native int releaseGpio(int num);
public native int setGpioState(int num,int state);Author: gusreed336 Time: 1/14/2026 23:51
This article is absolutely amazing, thank you for sharing it with us. The Latest C_BCFIN_2502 exam sims test questions are key to your promotion and salary boost¡ªfree for all!Author: lukeree724 Time: 1/16/2026 03:24
I am so grateful for your share, this article is truly impressive! I got promoted and earned a raise using this Reliable study guide 300-810 free. Now it¡¯s available for free. Best of luck with your promotions!Author: nickree197 Time: 1/23/2026 05:04
Your article is truly phenomenal, I¡¯m so grateful for you sharing it! Enhance your IT knowledge¡ªfree New test HPE6-A86 camp sheet shared! Wishing you success!
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)