534
edits
No edit summary |
m (Adding I2C checking section) |
||
| Line 140: | Line 140: | ||
Now the I2C buses are activated on the Raspberry. | Now the I2C buses are activated on the Raspberry. | ||
== I2C buses control == | |||
The I2C utilities can be checked with the '' 'i2cdetect' '' command. This command scans the I2C bus passed as a parameter and displays the addresses of the discovered elements | |||
<syntaxhighlight lang="shell-session"> | |||
fgint@raspberrypi:~ $ i2cdetect -y 1 | |||
0 1 2 3 4 5 6 7 8 9 a b c d e f | |||
00: -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |||
70: 70 -- -- -- -- -- -- -- | |||
fgint@raspberrypi:~ $ | |||
</syntaxhighlight> | |||
The bus checked is number '''1'''. The I2C buses '''0''' is not available, it is revered for the connection of the PI cameras. | |||
In the example above, 3 devices were discovered.<br /> | |||
There are two devices in the range 0x20 (0x20 and 0x21) and one device in the range 0x70 (0x70) | |||
edits