PinDetect rework, removed the continuous sampling, using just irq, timers and pin state sequence.

Fork of PinDetect by Andy K

PinDetect.h@3aca44118b7a: not found in manifest