User Tools

Site Tools


tutorials:cb2:development:how_to_control_gpio_on_android_4.2.2-v1.04

This is an old revision of the document!


How to contrl GPIO

We make the app which can Increase the voltage.

Push the gpio-ctrl to CB

We use the gpio control code and library file to compilation the Executable file named gpio-ctrl. At frist you should download the gpio-ctrl:

http://ubuntuone.com/1bh2zKV0BTTIR8P4uxUISq
After download,then connect CB by usb and open Terminal,open the Directory which you download:

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

Install CB-GPIO

Download CB-GPIO-beta1.apk form here:
http://ubuntuone.com/2nmYhi0KhYkHbVqFjPjQ5e
Open Terminal,connect CB:

adb install CB-GPIO-beta1.apk

Use CB-GPIO

Boot the CB, click on CB-GPIO, then you can see PD0~PD27.
Click on the button to toggle the corresponding pin from low to high state.

tutorials/cb2/development/how_to_control_gpio_on_android_4.2.2-v1.04.1380160911.txt.gz · Last modified: 2013/12/23 14:50 (external edit)