Switch to C style ring buffer library. Ugly but correct.
Swith Accelerometer to 100 Hz mode