Yes, I've made good experience prefixing all commands with \x15\x10.
Once I've disovered these magic characters a lot of trouble was gone! There are still constellations where an additional echo(0) seems to be required but I cannot tell which ones specifically.
Btw, I understand that for \x10print(1);print(2)\n echo is off for both print statements, while for \x10print(1)\nprint(2)\n the second print statement is echoed (if echo was on). I believe that my need for echo(0) comes from more complex code snippets that are separated by \n.
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.
Yes, I've made good experience prefixing all commands with
\x15\x10
.Once I've disovered these magic characters a lot of trouble was gone! There are still constellations where an additional echo(0) seems to be required but I cannot tell which ones specifically.
Btw, I understand that for
\x10print(1);print(2)\n
echo is off for both print statements, while for\x10print(1)\nprint(2)\n
the second print statement is echoed (if echo was on). I believe that my need for echo(0) comes from more complex code snippets that are separated by \n.