3.5
GPIO Test
EPC-R6410 GPIO default setting
EPC-R6410
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
GPIO8
GPIO9
GPIO10
GPIO11
GPIO12
GPIO13
GPIO14
GPIO15
GPIO16
GPIO17
# cd /sys/class/gpio
You can use "ls" to list all GPIO devices, and you should also see GPIO ports in
above table.
Example of testing GPIO
Set gpio2 GPI(in)
# echo in > ./gpio2/direction
# cat ./gpio2/direction
in
Set gpio12 GPO (out)
# echo out > ./gpio12/direction
# cat ./gpio12/direction
out
Set gpio12 GPO value "1"
# echo 1 > ./gpio12/value
Get gpio2 GPI value
# cat ./gpio2/value
1
As you can see in above procedure A and B, we set gpio2 as GPI and gpio12 as
GPO, once we send data out from gpio12, it should be able to receive the same data
from gpio2.
EPC-R6410 Android User Manual
Android OS
/sys/class/gpio/
gpio2
gpio3
gpio4
gpio 5
gpio6
gpio7
gpio8
gpio9
gpio10
gpio11
gpio12
gpio13
gpio14
gpio15
gpio16
gpio17
gpio18
gpio19
24
Default direction
in
in
in
in
in
in
in
in
in
in
out
out
out
out
out
out
out
out
Need help?
Do you have a question about the EPC-R6410 and is the answer not in the manual?