You are reading a single comment by @user130486 and its replies. Click here to read the full conversation.
  • 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);

    Thank you so much for guiding me


Avatar for user130486 @user130486 started