A millisecond should be safe, but you should be able to get a bit less than that. Obviously if other code is executing that can delay execution, but if as you say your code has finished executing then you'll be fine.
If you need to get very fast, you might be able to use digitalPulse,etc. Another option is to set up a PWM output, connect it to an input, and then watch that input with setWatch(...., {irq:true}) and use compiled code.
I'm seeing limitations of the IDE keeping up around 80-100ms
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.
A millisecond should be safe, but you should be able to get a bit less than that. Obviously if other code is executing that can delay execution, but if as you say your code has finished executing then you'll be fine.
If you need to get very fast, you might be able to use
digitalPulse
,etc. Another option is to set up a PWM output, connect it to an input, and then watch that input withsetWatch(...., {irq:true})
and use compiled code.Do you have an example of code that does this?