Stm32 Arduino Encoder Library