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?
setInterval
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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?