EasyManua.ls Logo

Orange Pi PC Plus - I2 C Test

Orange Pi PC Plus
150 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 81 www.xunlong.tv
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00
4) Then use the Dupont wire to short-circuit the two pins of spi's mosi (corresponding to
pin 19) and miso (corresponding to pin 21). The output of the retest is as follows. You can
see that the data sent and received are the same, indicating that the spi can be normal use
a. The test commands and results of the Linux5.4 system are
root@orangepi:~/wiringOP/examples# ./spidev_test -v -D /dev/spidev0.0
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF F0 0D | ......@....▒..................▒.
RX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF F0 0D | ......@....▒..................▒.
b. The test commands and results of the linux3.4 system are
root@orangepi:~/wiringOP/examples# ./spidev_test_linux3_4 -D /dev/spidev0.0
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D
3.24.3.
I2C test
1) The linux5.4 system turns off the i2c controller in 40pin by default in the dts. If you
need to use i2c, you need to open the i2c configuration first. The linux3.4 system is all on

Table of Contents

Related product manuals