That's a good point - I wonder if it actually knows... I know it's supplied with a bunch of definitions on the command-line that you could check, so ("-DESP8266" in sys.argv) might work.
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 a good point - I wonder if it actually knows... I know it's supplied with a bunch of definitions on the command-line that you could check, so (
"-DESP8266" in sys.argv
) might work.