Thursday 30 August 2018

Tutorial -2 :Node MCU :LED Interface

Node MCU : LED interface code for arduino IDE


///////////////////////////////////////////////////////////////////////
//https://electronicshobbycorner.blogspot.com/  //
// Node MCU/ESP8266 :LED interface             //
// Email: rajeev.emb402@gmail.com                 //
//////////////////////////////////////////////////////////////////////

void setup()
{
  pinMode(2, OUTPUT);           //Making integrated led us output 
                                                   //(put 16 insted  2 to connect led with D0)
}


void loop()
{

    digitalWrite(2,HIGH);         //LED OFF
    delay(1000);
    digitalWrite(2,LOW);          //LED ON
    delay(1000);

}

Click here to download code: DOWNLOAD CODE

Node MCU : LED interface code for TUNIOT

Click here to download code: DOWNLOAD CODE

Node MCU : LED interface Circuit Diagram


No comments:

Post a Comment