ICM-20948, Raspberry and C++

Hi All,

I am desperately looking for a lib, or at least some C++ code, to access the SparkFun 9DoF IMU Breakout - ICM-20948 (Qwiic).

I am able to open it with

int fd = wiringPiI2CSetupInterface(“/dev/i2c-0”, 0x69);

but I understand that this is only the beginning of the travel …

I would like to use this IMU as a simple compass, for a start, but ouch!, how to start it? How to read good values? How to …

I can see a bunch (at least more than one) libs for Arduino, but … I am on a Pi!

Thanks for your help!!

Patrice

You can find the source for the Arduino library at https://github.com/sparkfun/SparkFun_IC … master/src

Other than the I2C code, the rest should port very easily.

/mike

We have already produced a PyPi package that supports the ICM-20948

https://github.com/sparkfun/Qwiic_9DoF_IMU_ICM20948_Py

Hope that helps!