Count Pulses from Water Meter and Open Valve Every 'N' pulses

billions times if I count all the interrupts :slight_smile:

note that in the main code you must use interrupts() and nointerrupts() if you want to access this counter.
That prevents that the interrupt changes the value while you are accessing a multibyte var.

NoInterrupts() will disable interrupts, but the CPU will buffer 1 Interrupt so no pulse is lost