GPIO example in SC200L

Hi everyone,

Could you give example how to control GPIO in SC200 with source code in Andoid Studio?

Thanks.

Hi, LanLan:
You can refer to this demo.
GPIOJNITest.zip (6.8 MB)

The project needs an Embedded JDK, and I check from Oracle website, it have Java SE Embedded, but all extensions is tar.gz, so does that means this project run on Andoid Studio in Linux operating system, ubuntu for example. Is that correct?

hi,
You can use your own Android SDK.
Just click OK button to change the SDK path to yours.

Sorry for responding late,
I tried both the file apk already has in the folder and the file I build in my computer. Both of them did not really work.
I know 8 gpio leds in SC200L are:
1: GPIO92 2: GPIO91 3:GPIO93 4: GPIO90
5: GPIO8 6:GPIO29 7:GPIO23 8: GPIO121
They report with error both write and read gpio.

HI,
Please do as follows first:
adb shell
su
setenforce 0
chmod 0666 /sys/class/gpio/gpioxx/value

It works, not all 8 leds just like controlling it in user space.
Thank you.