I happened to be running a chunk of E.compiledC as I read this post and wondered the same, but after a quick hack, concur that four arguments seems to be the max.
Uncaught Error: Error Parsing signature at argument number 5
'does Espruino handle <1ms as setInterval'
As an observation only as I don't have a scope to validate, from the FAQ page:
There is an example that indicates as fast as 333 microseconds, but to perform any useful task most likely would require a function wrapper.
The best I was able to obtain with minimal code inside that wrapper was around 30msec.
Hope that provides some insight, but get the input from others also.
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.
Sun 2019.01.27
Hi @stephaneAG
I happened to be running a chunk of
E.compiledC
as I read this post and wondered the same, but after a quick hack, concur that four arguments seems to be the max.As an observation only as I don't have a scope to validate, from the FAQ page:
There is an example that indicates as fast as 333 microseconds, but to perform any useful task most likely would require a function wrapper.
The best I was able to obtain with minimal code inside that wrapper was around 30msec.
Hope that provides some insight, but get the input from others also.