Edited for the use in a MMA8452Q with 12 bit values

Signed-off-by: Richard Fox <richard.fox@ahref.co.uk>