Interrupt variable exceeds volatile long's 8bit size

This counter will fit to an uint32 variable.
You have to dis- and enable the interrupt during reading the counter from the loop() function.

1 Like