RSB-6410 Android User Manual
38
3.5
GPIO Test
RSB-6410 GPIO default setting
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)
Set gpio12 GPO (out)
Set gpio12 GPO value “1”
RSB-6410
Android OS
/sys/class/gpio/
Default direction
GPIO0
gpio2
in
GPIO1
gpio3
in
GPIO2
gpio4
in
GPIO3
gpio 5
in
GPIO4
gpio6
in
GPIO5
gpio7
in
GPIO6
gpio8
in
GPIO7
gpio9
in
GPIO8
gpio10
in
GPIO9
gpio11
in
GPIO10
gpio12
out
GPIO11
gpio13
out
GPIO12
gpio14
out
GPIO13
gpio15
out
GPIO14
gpio16
out
GPIO15
gpio17
out
GPIO16
gpio18
out
GPIO17
gpio19
out
GPIO18
gpio20
out
GPIO19
gpio21
out
# cd /sys/class/gpio
# echo in > ./gpio2/direction
# cat ./gpio2/direction
in
# echo out > ./gpio12/direction
# cat ./gpio12/direction
out
# echo 1 > ./gpio12/value
Содержание RSB-6410
Страница 1: ...User Manual RSB 6410 NXP ARM Cortex A9 i MX6 Dual Quad Mini ITX Motherboard...
Страница 6: ...RSB 6410 Android User Manual vi...
Страница 12: ...RSB 6410 Android User Manual 4...
Страница 41: ...33 RSB 6410 Android User Manual Chapter 2 H W Installation 2 4 2 Board Dimensions 2 4 2 1 Board Drawing unit mm...
Страница 43: ...Chapter 3 3 Software Functionality This chapter details the software programs on the RSB 6410 plat form...
Страница 54: ...RSB 6410 Android User Manual 46...
Страница 66: ...RSB 6410 Android User Manual 58 3 Choose ESSID for example Advantech for guest Testing 4 Input correct password...
Страница 76: ...RSB 6410 Android User Manual 68...