InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold.

Fork of PinDetect by Andy K