pin swap for interrupt input