http://mbed.org/users/JimCarver/code/FXOS8700Q/#ab84f99086e5