I'm trying to communicate with an MPU6500 sensor via SPI as I need the fastest possible update rate. I have trouble finding an easy to understand sample code, or perhaps a lightweight library how to configure and initialize the sensor and read gyro / accelerometer data via SPI.
So far I started adapting the code and info found at:
https://playground.arduino.cc/Main/MPU-6050
I thought it would be fairly easy to use SPI instead of I2C "Wire", and adapt the configuration and registers based on the data sheet, but I realized there's too many possible pitfalls.
Any recommendations?