change pin mode dynamic