Read stm32 input pins