Hast du deine Portdefinitionen nochmal überprüft ?

Kann ja sein das du alles auf ausgang schaltest bevor das Programm losgeht.