It sounds really good - yes, you'd need a biggish buffer to allow things like IRQs to get handled in the background if they need to be.
With your compiler issues:
const a = [<address>,<value>];
poke32( a[0], a[1]);
should have given you the error:
Error: ArrayExpression is not implemented yet
Because defining JS arrays from compiled code isn't supported yet unfortunately. Even if it had worked, your code would have ended up being slow because it would have defined a JavaScript array type though.
With your other problem, that was definitely a compiler issue where it wasn't handling variables correctly when used as function args - that should now be fixed :)
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.
It sounds really good - yes, you'd need a biggish buffer to allow things like IRQs to get handled in the background if they need to be.
With your compiler issues:
should have given you the error:
Because defining JS arrays from compiled code isn't supported yet unfortunately. Even if it had worked, your code would have ended up being slow because it would have defined a JavaScript array type though.
With your other problem, that was definitely a compiler issue where it wasn't handling variables correctly when used as function args - that should now be fixed :)