This is a cache of https://discuss.96boards.org/t/gpio-access-in-android-on-orangepi-i96/4708. It is a snapshot of the page at 2024-09-20T02:03:24.861+0000.
GPIO access in <strong>android</strong> on OrangePi i96 - Orange Pi i96 - 96Boards Forum

GPIO access in android on OrangePi i96

Has anyone managed to get the GPIO working in android on the i96?

I can control LED2 using gpio#126 (C30) via the /sys/class/gpio interface but I can’t seem to get any of the other GPIO to function as an output. I’m just using /sys/class/gpio/* files as root to export each GPIO, set the direction to “out” and use “value” to attempt to change the output.

I’m using the OrangePi_i96_NandStartup_V1.2.rar image android image provided on OrangePi.org.

If someone can verify that they’ve been able to do this, it would be a great help.

Problem is the 2G-IOT board and i96 board use the same SOC (RDA8810) but internal PCB wiring is quite different. See my note in this OPi Forum thread WiringPi on OrangePi 2G-IOT[Beta] - page 3 - News - OrangePi - Powered by Discuz! (comparision table)