Spirit level using accelerometr on STM32F4Discovery