https://os.mbed.com/teams/ST/code/X_NUCLEO_IKS01A3/#90c874c6a9f6