Libraries for the I2C on VIM3

Which Khadas SBC do you use?

Khadas VIM3

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official image, 20.04, Linux kernel 4.9

Please describe your issue below:

May I please get the libraries for the I2C function on the VIM3.

On the documentation page, https://docs.khadas.com/products/sbc/vim3/applications/gpio/i2c, I am only able to find information on how to enable the I2C feature.

May I please know how I can use the I/O pins on my I2C I/O port expander with the VIM3. I have it connected to the pin #22, 23 and interrupt to 25. Is it possible to get a demo/example code and instructions on using the I2C with the VIM3.

Thank you

Hello @Balaji

You can use i2c-tools.

https://manpages.ubuntu.com/manpages/jammy/en/man8/i2cdetect.8.html

1 Like