Difference between revisions of "GPIO"
(→I2C) |
|||
| Line 46: | Line 46: | ||
<pre> | <pre> | ||
| + | /etc/group | ||
i2c:x:111: | i2c:x:111: | ||
</pre> | </pre> | ||
Latest revision as of 16:49, 6 November 2014
GPIO
I2C
i2c-dev i2c-bcm2708
sudo nano /etc/modules
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. snd-bcm2835 i2c-dev i2c-bcm2708
in case blacklisted
sudo nano /etc/modprobe.d/raspi-blacklist.conf
pi@raspberrypi /dev $ ls -la i2c* crw-rw---T 1 root i2c 89, 1 Nov 3 18:14 i2c-1
sudo i2cdetect -y 1
sudo i2cdetect -y 0
/etc/group i2c:x:111:
i2c:x:111:pi
pi@raspberrypi ~ $ sudo i2cdetect -y 1
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: -- -- -- -- -- -- -- --
