range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
210
3) After starting the Linux system, first confirm that there is an i2c device node under
/dev
orangepi@orangepi:~# ls /dev/i2c-*
/dev/i2c-0 /dev/i2c-2 /dev/i2c-3 /dev/i2c-4 /dev/i2c-6
4) Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example
of the DS1307 RTC module.
Corresponding
to No. 3 pin
Corresponding
to No. 27 pin
Corresponding
to No. 19 pin
Corresponding
to No. 5 pin
Corresponding
to No. 28 pin
Corresponding
to No. 23 pin
Corresponding
to No. 1 pin
Corresponding
to No. 1 pin
Corresponding
to No. 1 pin
Corresponding
to No. 6 pin
Corresponding
to No. 6 pin
Corresponding
to No. 6 pin
5) Then use the i2cdetect -y command If the address of the connected I2C device can be
detected, it means that the I2C can be used normally
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
orangepi@orangepi:~$ sudo i2cdetect -y 3 #i2c3 command
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command