I'm trying to make I2C work on my Raspberry Pi 2 model B.
Output of uname -a
for software/kernel info:
Linux raspberrypi2 4.1.7v7-aufs #1 SMP PREEMPT Wed Sep 16 13:19:27 CEST 2015 armv7l GNU/Linux
I added the line dtparam=i2c
in /boot/config.txt
and i2c-dev
in /etc/modules
. The correct modules get loaded at boot, as I can see with lsmod
.
However, I2C still doesn't work. If I run i2cdetect -y 1
I get
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
If I run ls -l /dev/*i2c*
I get a "No such file or directory" error. What should I do? Thanks.