why not have interrupts increment a counter. every second report the count of both interrupt. in the code that reports the count, you can use noInterrupts(), just in the code that copies the counts, then re-enable the interrupts and display the counts
1 Like