Stm32 Arduino Port Manipulation