I am using I²C to control a Bright Pi module.
I followed instructions from 'Configuring GPIO - Adafruit' and 'Configuring I²C - Adafruit' to set up the I²C. I have done this a few months ago and everything went fine.
This is how I connected the Bright Pi on my Raspberry Pi (Model B):
Since today I noticed the I²C doesn't work anymore as it used to. Using the commands like 'sudo i2cdetect -y 1' and 'sudo i2cset -y 1 0x70 0x00 0xff' will give the error:
Could not open file '/dev/i2c-1' or '/dev/i2c/1': No such file or directory
Using the command 'sudo i2cdetect' will give the error
No i2c-bus specified!
which means the i2c-dev is running.
The file '/etc/modules' looks like this:
#/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
The file '/etc/modprobe.d/raspi-blacklist.conf' looks like this:
blacklist spi and i2c by default (many users don't need them)
#blacklist spi-bcm2708
#blacklist i2c-bcm2708
blacklist snd-soc-pcm512x
blacklist snd-soc-wm8804
I've tried reinstalling all required modules, but that didn't help either. Also apt-get update
and apt-get upgrade
didn't help.
The command 'lsmod | grep i2c' shows this:
i2c_bcm2708 6004 0
i2c_dev 6709 0
It is strange, because it used to work before. I might think it is "broken" since I did a firmware update two days ago, because my Raspberry Pi was showing weird kernel errors.
How can I fix the problem with the I²C?