Raspberrypi
i2c test, RPI4B
Louiey
2022. 5. 11. 15:27
ls -al /dev/i2c*
i2cdetect -y 0
i2cdetect -y 1
pi@raspberrypi:~/Work/temp $ ls -al /dev/i2c*
crw-rw---- 1 root i2c 89, 0 May 6 15:09 /dev/i2c-0
crw-rw---- 1 root i2c 89, 1 May 6 15:09 /dev/i2c-1
crw-rw---- 1 root i2c 89, 10 May 6 15:09 /dev/i2c-10
crw-rw---- 1 root i2c 89, 20 May 6 15:09 /dev/i2c-20
crw-rw---- 1 root i2c 89, 21 May 6 15:09 /dev/i2c-21
crw-rw---- 1 root i2c 89, 22 May 6 15:09 /dev/i2c-22
pi@raspberrypi:~/Work/temp $ i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Work/temp $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- 3a -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Work/temp $
0x44 : SHT4x
0x3A : MLX90632
detected two devices on I2C1 port