> interrupt priority set to 0 on INPUT pin.

This will jitter occasionally because various things unnecessarily turn *all* interrupts off and then do things for who knows how long. I propose that...