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

Fork of PinDetect by Andy K

PinDetect.h/shortlog@4f4ccb203a70: not found in manifest