Could anyone help me with programming my mma845x from arduino mega 2560?

Tutorial and example code.


I was using an STM32 that was bootloaded with an Arduino and I found that the Adafruit library just didn't work when using the MMA845XQ.

I found that this library got the accelerometer working.