Raspberry I2C Setup: Difference between revisions

Jump to navigation Jump to search
Line 150: Line 150:
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
fgint@raspberrypi:~ $
fgint@raspberrypi:~ $
</syntaxhighlight>
</syntaxhighlight>


The bus checked is number '''1'''. The I2C buses '''0''' is not available, it is revered for the connection of the PI cameras.
If you have message as like :
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)
 
If you have message as like :  


<syntaxhighlight lang="shell-session">
<syntaxhighlight lang="shell-session">
Line 172: Line 168:


'''This probably mean, that you didn't activate I2C support on your raspberry.'''
'''This probably mean, that you didn't activate I2C support on your raspberry.'''
== Example ==
On our Radio Panel project, we have 3 '''devices''' used : 2 '''MCP23017''' and 1 '''HT16K33'''
<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 />
534

edits

Navigation menu