That's great, thanks! Only thing to watch out for is that because you're putting the command into a templated string without quoting, some thing can fail - for instance uploading:
print("Hello\nWorld")
Won't have the desired effect, because it'll actually turn into:
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.
That's great, thanks! Only thing to watch out for is that because you're putting the command into a templated string without quoting, some thing can fail - for instance uploading:
Won't have the desired effect, because it'll actually turn into:
It's easy enough to solve that using the Python JSON library to 'stringify' the command first though: https://docs.python.org/3/library/json.html