MMA8452Q with working example in c, outputting values and variable sleep function (Must check values are as expected though)