I'm trying to get all my ducks in a row while I wait for my custom pcbs to arrive, and I'm wondering if anyone has code available that will work for me out of the box. What I'm looking for is an example sketch and MPU 9250 libraries that will work with the ATmega328P (3.3V, 8MHz), communicating via SPI. With the sketch, I'm looking to read the values from the gyroscope, accelerometer, and compass as they become available.
MPU9250 to ATmega328P connections:
INT D2/INT0 NCS D10/SS SDI D11/MOSI SDO D12/MISO SCLK D13/SCK
I have seen a number of sketch and library options out there, but all the ones I've seen thus far either use I2C or do not compile. Given I don't yet have my hardware it's not worth debugging.
In the event that no one is able to assist me, I will make sure to post whatever code I get working after the hardware arrives.