How to use I2C bus in my c++ code?

Hi all guys,
I have a program that can read sensor data from i2c bus,coding by c++.And it’s do well in RPi 3B+ platform.
Now I want deploy this project to Jetson Nano,but I couldn’t find a suitable C/C++ library such as wiringPi in 3B+ to make my program right.
I already install i2c-tools libi2c-dev in my nano. i2cdump i2cget i2cset works well
Is there any usable library or solution for using i2c bus in c++ code?
Do I need coding my own i2c driver file?
Thanks a lot!

Have a check below lib

1 Like

Thank you very much for your help.It’s very useful ,I’ll do the test in my code !

1 Like