Raushan kr.
Published © CC BY-NC-SA

ESP8266 : Make an LED blink from the Arduino IDE

Hii friends welcome in “DiY Projects Lab” In this post i”ll show you how to easily we can program our ESP8266 NodeMCU with Arduino IDE

BeginnerFull instructions provided1 hour6,033
ESP8266 : Make an LED blink from the Arduino IDE

Things used in this project

Hardware components

ESP8266 ESP-01
Espressif ESP8266 ESP-01
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

Code

Code

Arduino
int LED = 5; // Assign LED pin i.e: D1 on NodeMCU
void setup() {
// initialize GPIO 5 as an output
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off
delay(1000); // wait for a second
}

Credits

Raushan kr.
38 projects • 160 followers
Maker | Developer | Content Creator
Contact

Comments

Please log in or sign up to comment.