Hardware Reference
In-Depth Information
Figure 4-9.
TAOS TSL2561 light sensor support enabled as a module
To install the necessary userspace software (
i2c-tools
) on Pidora, run:
$ su -c 'yum install i2c-tools -y'
To install
i2c-tools
on Raspbian, run:
$ su -c 'apt-get install i2c-tools'
To look for the device, you need to run
i2cdetect
on bus 1 (as root). Here's the
i2cde
tect
command line you want to run:
$ su -c 'i2cdetect -y 1'
If all of your wiring is correct, you will see output like this:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --