please choosego to mobile | Continue to access the PC version
View: 7109|Reply: 1

How I can use GPIO on Android? RESOLVED!!!

[Copy link]

2

threads

2

posts

89

credits

Registered member

Rank: 2

credits
89
Published in 2016-6-5 23:41:55 | Show all floors |Read mode
Edited by alexshi at 2016-6-6 00:41

How I can use GPIO on Android? RESOLVED!!!
'ON  standby_led GREEN LED

echo '1' > /sys/class/gpio_sw/standby_led/data
'OFF  standby_led GREEN LED
echo '0' > /sys/class/gpio_sw/standby_led/data

'if  you can see GPIO
ls /sys/class/gpio_sw







11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
Published in 2016-6-7 01:58:45 | Show all floors
you may download any of GPIO libraries C/C++/PYTHON already ported to orange pi and compile them in the native mode to your android. in the android market are a couple of C++ compilers. i like "terminal ide". it's pitty that it no longer in development, but all sources is free and open.
after compiling you can use resulting libs as other native libs.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list