Sorry I'm a bit late replying here - was away all weekend. I think it's all been explained, but hopefully this is more of a summary:
If Espruino is idle it'll basically have exactly the same effect as if you had an interrupt - but if it's busy then you'll have to wait a small time until the code is executed.
The decision not to allow JS in interrupts is actually for a few reasons:
In the mean time, it's actually pretty easy to compile Espruino yourself, and you can then add your own bits of C code (which can run on interrupts).
© Espruino, powered by microcosm.
Report a problem