39
RSB-6410 Android User Manual
Chapter 3
S
oftware
Functionality
Get gpio2 GPI value
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.
3.6
I2C Test
There is one I2C buses in RSB-6410.
Please try below command to know if there is any device connected to i2c bus 1.
# cat ./gpio2/value
1
# ls /sys/class/i2c-dev
i2c-0
i2c-1
i2c-2
# i2cdetect -l
i2c-0 i2c imx-i2c I2C adapter
i2c-1 i2c imx-i2c I2C adapter
i2c-2 i2c imx-i2c I2C adapter
# i2cdetect -yr 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --
30: -- -- -- -- -- -- -- 37 -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- --
50: UU 51 52 53 54 55 56 57 -- 59 -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- UU --