http://mbed.org/teams/aigamozu/code/VNH5019/#1bcdb655df71