Install libi2c-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libi2c-dev
Description:
userspace I2C programming library development files
I2C devices are usually controlled by a kernel driver. Using this library it is also possible to access all devices on an adapter from userspace and without the knowledge of Linux kernel internals. . This package contains what you need for compiling sources that use this library in your own code.
Homepage: https://www.kernel.org/pub/software/utils/i2c-tools/
Version: 4.0-2
Section: universe/libdevel