I actually managed to get the built-in LED on with :
var led = NodeMCU.D4; // built-in LED
var state = true; // LED switched on by default
var duration = 500; // blink the LED every 500 ms
setInterval(function() {
digitalWrite(led, state);
state = !state; // toggle LED state
}, duration);
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.
I actually managed to get the built-in LED on with :
Thank you so much for guiding me