Hi, There was one forum posting that answered this question (https://www.udoo.org/forum/threads/i2c-usage.3239/) but it's years old and some of the links on the page it points to are now dead. Trying to get I2C comms with a thermal image sensor working (specifically MLX90640 if it matters). Want to communicate with it from a C++ program running on the A9 side of Neo (so from Ubuntu). The sensor MFR has designed their FW to interface with mbed I2C, but mbed is a monstrosity and I don't think it's possible to use those mbed libraries from Neo A9 anyway (correct me if this is wrong). So looking for an I2C library that will definitely run on the A9 Neo Ubuntu, and having a surprisingly hard time finding this. Also tried libi2c from https://github.com/amaork/libi2c, but that doesn't seem to initially compile with either gcc or g++ on Neo Ubuntu. Can anyone please recommend a C++ I2C library that someone has actually used from the Neo A9 side? At this point really just need to issue the start and stop conditions on the bus and read/write and seems this shouldn't be hard. Thanks very much if anyone can help.
Hi Matthew, I'd suggest using the standard ioctl subsystem for Linux, and submit the low level calls directly to the i2c device: https://elinux.org/Interfacing_with_I2C_Devices It should work without problems on C/C++. Ek5