Difference between revisions of "Beaglebone black i2c"
From Teknologisk videncenter
m (→I2C device drivers) |
m (→Detect i2c devices) |
||
Line 2: | Line 2: | ||
==Detect i2c devices== | ==Detect i2c devices== | ||
− | Use with a little care - read | + | Use with a little care - read the ''i2cdetect'' man page |
<source lang=bash> | <source lang=bash> | ||
root@beaglebone:/home/debian/bin# i2cdetect -y -r 2 | root@beaglebone:/home/debian/bin# i2cdetect -y -r 2 | ||
Line 18: | Line 18: | ||
*''--" Means no answer on probe | *''--" Means no answer on probe | ||
*"UU" Means probing was skipped, because a device driver uses the address | *"UU" Means probing was skipped, because a device driver uses the address | ||
− | *"Number" - A n i2c device was found | + | *"Number" - A n i2c device was found |
+ | |||
=I2C device drivers= | =I2C device drivers= | ||
*[https://www.kernel.org/doc/html/latest/i2c/writing-clients.html Implementing I2C device drivers] | *[https://www.kernel.org/doc/html/latest/i2c/writing-clients.html Implementing I2C device drivers] | ||
[[Category:Beagleboard Black]][[Category:i2c]][[Category:Linux]] | [[Category:Beagleboard Black]][[Category:i2c]][[Category:Linux]] |
Revision as of 07:15, 30 May 2021
Detect i2c devices
Use with a little care - read the i2cdetect man page
root@beaglebone:/home/debian/bin# i2cdetect -y -r 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
- --" Means no answer on probe
- "UU" Means probing was skipped, because a device driver uses the address
- "Number" - A n i2c device was found