My guts tell me that Espruino is too slow to actually make it that fast...
There are ways to make it faster by hooking directly into the interrupt... but because JS
interpretation takes so much time you always miss hits... Did you check the error flag? I guess the internal event queue overflows within no time.
Do you want to measure how many pulses happen in a second?
@allObjects 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.
My guts tell me that Espruino is too slow to actually make it that fast...
There are ways to make it faster by hooking directly into the interrupt... but because JS
interpretation takes so much time you always miss hits... Did you check the error flag? I guess the internal event queue overflows within no time.
Do you want to measure how many pulses happen in a second?