Simple library to interface with ICM20649 IMU using I2C communication protocol.
This code was tested on Ubuntu 16.04, 18.04 and 20.04 distros.
CMake: https://cmake.org/
sudo apt install cmake
Clang-format:
sudo apt install clang-format
I2C tools:
sudo apt install libi2c-dev i2c-tools
Clone the repository
git clone [email protected]:neuromorphic-paris/ICM20649.git
Build and compile the executables:
cd ICM20649
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release && make
To run the tests, you can turn ON
the ICM20649_BUILD_TEST
flag and compile everything again.
Then, just run:
make test
To build the documentation you need Doxygen installed and turn ON
the ICM20649_BUILD_DOC
flag.
Then, just run:
make doc
An example executable is provided that displays the measurements from the IMU accelerometer, gyroscope and temperature sensors. To run it, from the repository root directory type:
cd build/src
./display_measurements
The ICM20649 code is licensed under CC BY-NC-SA 4.0. Commercial usage is not permitted.