I2C¶
Available I2C buses¶
List of available I2C buses:
# ls -l /dev/i2c-*
crw------- 1 root root 89, 0 Jul 4 09:09 /dev/i2c-0
crw------- 1 root root 89, 1 Jul 4 09:09 /dev/i2c-1
crw------- 1 root root 89, 2 Jul 4 09:09 /dev/i2c-2
crw------- 1 root root 89, 3 Jul 4 09:09 /dev/i2c-3
System class:
I2C devices per bus¶
When the device is marked with "UU" it means that a driver is using it.
When the device is marked with numbers it means that no driver is using it.
Reading / Writing from an I2C device¶
Variscite includes I2CTools as a part of the default file system build, examples of optional commands:
i2cdump - dump the content of an I2C device
i2cset - write a single character to an I2C device
i2cget - read a single character to an I2C device
In addition follow 'C' code example as describe in the linux kernel documentation : https://www.kernel.org/doc/Documentation/i2c/dev-interface
Variscite's system integrated I2C devices¶
Note: Do not write to Variscite's on-SOM EEPROM or you will damage the SOM!