Complete the code to install the I2C tools package on Raspberry Pi.
sudo apt-get [1] i2c-toolsThe command sudo apt-get install i2c-tools installs the I2C tools package needed to work with I2C devices.
Complete the command to open the Raspberry Pi configuration tool.
sudo raspi-config [1]The raspi-config nonint option allows non-interactive configuration, useful for scripting.
Fix the error in the command to enable I2C interface using raspi-config.
sudo raspi-config [1] i2cThe correct command to enable I2C is sudo raspi-config enable i2c.
Fill both blanks to add I2C modules to the Raspberry Pi boot configuration.
echo '[1]' | sudo tee -a /etc/modules sudo modprobe [2]
The i2c-dev module is added to /etc/modules to load at boot, and i2c-bcm2708 is loaded immediately with modprobe.
Fill all three blanks to check connected I2C devices on Raspberry Pi.
sudo [1] -y [2]
The command sudo i2cdetect -y 1 scans the I2C bus 1 for connected devices. Bus 0 is older and less common.
