rewriting function wiringPiISR