User Tools

Site Tools


tutorials:common:gpio_on_android

This is an old revision of the document!


How to use Cubieboard-GPIO On Android

We use gpio-contrl code and some library files to compile an executable file named gpio-ctrl. So we can control the GPIO pin by Android app.

At first we should download gpio-app from here http://ubuntuone.com/5VcumJ1O27WZaUamC4lpMV and decompress it.You can see there are two files in the gpio-app

Connect with Cubieboard by USB,then open terminal and input:

$ adb shell
$ mount -o remount,rw /system
$ exit
$ adb push gpio-ctrl /system/bin  

Download the app into Cubieboard:

$ adb install CB-GPIO-beta1.apk

After all,we can contrl GPIO by CB-GPIO,to do something interesting.

Note: We just use PD0~PD27 pins.

tutorials/common/gpio_on_android.1380898034.txt.gz · Last modified: 2013/12/23 14:50 (external edit)