maybe there is better version but check output of process.env
process.env
>process.env ={ VERSION: "2v16.1", GIT_COMMIT: "1a18b5384", BOARD: "EMSCRIPTEN2", RAM: 0, FLASH: 8388608, SPIFLASH: 8388608, HWVERSION: 2, STORAGE: 8388608, SERIAL: "00000000-addeadde-addeadde", CONSOLE: "USB", MODULES: "Flash,Storage,hea" ... "tensorflow,locale", EXPTR: 155840 } > `
so you may test process.env.BOARD or the SERIAL
@fanoush started
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.
maybe there is better version but check output of
process.env
so you may test process.env.BOARD or the SERIAL