|
How to control GPIO in Android application?
发表于 2015-9-9 16:10:05
浏览:10131
|
回复:6
打印
只看该作者
[复制链接]
楼主
Hi,
I want to create android application that is able to control GPIO, LED, Serial port.
I've searched a lot but can't get enough of good solution.
The following is the programming path which I understand.
Android App (Java) ---> Android JNI ---> Android Native Code (C/C++) ---> ??? ---> Device Drivers
. How can I access the Device Drivers (GPIO, LED, Serial port) in Android Native C/C++ code?
. Do I need to modify or create existing device driver for using GPIO, LED, Serial port?
. Is there library provided to read/write specific resource like "/sys/class/gpio/gpio91/value"?
. Would you let me know how to access GPIO, LED, Serial port in Android App with sample source code or SDK?
Thanks. |
|