Generic i2c screen

From The World according to Vissie
Jump to navigation Jump to search

Setup instructions

Install these files:

sudo apt-get update
sudo apt-get install python-smbus i2c-tools

If not allready, add this line to the end :

vim: /boot/config.txt
dtparam=i2c_arm=on
vim: /etc/modules
i2c-bcm2708
i2c-dev

Depending on your distribution, you may also have a file called /etc/modprobe.d/raspi-blacklist.conf. Make sure the above 2 files in not blacklisted.

Reboot now

Your Pi has to see the device. Check this by:

ls -l /dev/i2c-1
sudo i2cdetect -y 1