using Serial.print in the ISR violates the principle of keeping the ISR brief and uncomplicated.
and is not guaranteed to work because interrupts are disabled.
using Serial.print in the ISR violates the principle of keeping the ISR brief and uncomplicated.
and is not guaranteed to work because interrupts are disabled.