User Guide

178
To add the i2c-dev module to the list of modules that Raspbian
loads when the Pi is started:
1. On the Application Launcher, click LXTerminal.
2. Type the following command and then press Enter:
sudo nano /etc/modules
3. On a new line, add:
i2c-dev
4. On a new line, add:
i2c-bcm2708
5. Press Ctrl + O, and then press Enter.
6. Press Ctrl + X.
Now you need to install the i2c-tools package and build the py-
smbus module:
1. In LXTerminal, run the following commands one by
one:
sudo apt-get install i2c-tools
sudo shutdown -r now
2. In LXTerminal, type the following command and
then press Enter:
sudo apt-get install python3-dev
3. Run the following commands:
sudo apt-get install libi2c-dev
cd /home/pi/Desktop
4. Type the following command on one line, and then
press Enter:
wget http://ftp.de.debian.org/debian/pool/
main/i/i2c-tools/i2c-tools_3.1.0.orig.tar.bz2
5. Run the following commands:
tar xf i2c-tools_3.1.0.orig.tar.bz2
cd i2c-tools-3.1.0/py-smbus
6. Type the following command on one line, and then
press Enter: