This is a test code that reads the encoders with STM32Cube F4 on a STM32F4-Discovery