Hi - I'm afraid I'm not sure what to suggest - by 'randomly' do you mean that it triggers even when there is no pulse? Or that sometimes when there are pulses it doesn't trigger?
It shouldn't be an issue but you could try explicitly adding debounce:0?
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.
Hi - I'm afraid I'm not sure what to suggest - by 'randomly' do you mean that it triggers even when there is no pulse? Or that sometimes when there are pulses it doesn't trigger?
It shouldn't be an issue but you could try explicitly adding
debounce:0
?