Skip to content

Enable I2C interface support

Volodymyr Huz edited this page Nov 28, 2018 · 1 revision

It requires to use devices that works via I2C interface with Raspberry Pi

Add using i2c-dev module by Linux kernel

sudo nano /etc/modules

i2c-dev

Install packages to support I2C

sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools
sudo adduser osmc i2c

Enable I2C interface

sudo nano /boot/config.txt

dtparam=i2c_arm=on
dtparam=spi=on

Check I2C interface working and find I2C plugged devices addresses

sudo i2cdetect -y 1

Clone this wiki locally