Smart Home Automation Forum
how to enable i2c bus for CM5 in config.txt file - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=89)
+--- Forum: Pi5 (https://www.kincony.com/forum/forumdisplay.php?fid=90)
+--- Thread: how to enable i2c bus for CM5 in config.txt file (/showthread.php?tid=9074)



how to enable i2c bus for CM5 in config.txt file - admin - 02-23-2026

In the root of the hassos-boot partition, add a new folder called CONFIG.
In the CONFIG folder, add another new folder called modules.
Inside the modules folder add a text file called rpi-i2c.conf with the following content:
i2c-dev

In the root of the hassos-boot partition, edit the file called config.txt at last add two lines to it:
dtparam=i2c_arm=on
dtoverlay=i2c1-pi5,pins_2_3
   

restart home assistant.

how to check whether have enabled i2c bus for home assistant, see here: https://www.kincony.com/forum/showthread.php?tid=9075