Changed digitalRead to return int value and implemented wiringPiISR using delegates