Avatar for user130486

user130486

Member since Jun 2021 • Last active Jul 2021
  • 2 conversations
  • 4 comments

Most recent activity

    • 13 comments
    • 4,006 views
  • in ESP8266
    Avatar for user130486

    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

  • in General
    Avatar for user130486

    This might have already been asked but is there anyway I can use vscode for Espruino or are we stuck with the web ide?

  • in ESP8266
    Avatar for user130486

    So far Espruino has been awesome but as a beginner I have some issues wrapping my head around targeting the pins. In the documentation I can see

    NodeMCU.A0
    NodeMCU.D0
    NodeMCU.D1
    NodeMCU.D10
    NodeMCU.D2
    NodeMCU.D3
    NodeMCU.D4
    NodeMCU.D5
    NodeMCU.D6
    NodeMCU.D7
    NodeMCU.D8
    NodeMCU.D9

    However there is no mention of the buildin led on the board. How can I select that?
    Also I don't know how I can select the other pins for example S1 S2 EN and RX.

    Appreciate it.

  • in ESP8266
    Avatar for user130486

    This saved my ass. Thanks.

Actions