http://mbed.org/users/JimCarver/code/FXLS8471Q/#b1fd3a2572e2