• Perhaps the best approach other than the pin joining is to have the ISR set a flag and use a setinterval() to check the flag and do the emit.

    Ahh, but if you're doing that, it's almost as easy to just check the interrupt flag and reset it right from setInterval, without the interrupt?

About

Avatar for Gordon @Gordon started