it does not work unfortunately. no delay.
>function delay(ms) { : return new Promise(resolve => setTimeout(resolve, ms)); :}; =function (ms) { ... } >print(new Date()); delay(5000); print(new Date()); Date: Wed Dec 31 1969 19:05:07 GMT-0500 Date: Wed Dec 31 1969 19:05:07 GMT-0500 =undefined >
@Mark_M 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.
it does not work unfortunately. no delay.