change port manipulation to ardino commands and lets change the pin at runtime possible