Basic Blink sketch with pin mapping using D1 Mini Wifi Development board Example 2/2

Project Video
Project Details

This code is for video on how to start using D1 Mini Wifi development board with Arduino.

Boards manager link:    

keywords: NodeMCU , esp32, wifi

See Setting Up Wemos D1 Mini ESP8266 Wifi with Arduino Example 1/2

Project Code

 * LED blink program testing D1 Mini Development board based on ESP8266
 * blinks ON, OFF, ON, OFF, then long ON, OFF
 * Watch video instruction :
 * Written by Ahmad Shamshiri on Aug 01, 2019
 * at 17:42 in Ajax, Ontario, Canada
 * for
 * Get this code and other Arduino codes from
If you found this tutorial helpful, please support me so I can continue creating 
content like this. You can support me on Patreon
or make donation using PayPal

void setup() {
  pinMode(LEDpin, OUTPUT);     // Initialize the LEDpin pin as an output

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LEDpin, LOW);// Turns the blue LED ON  (see video why)
  delay(300);// Wait for 300 milliseconds
  digitalWrite(LEDpin, HIGH);// Turns the blue LED OFF  (see video why)
  delay(300);// Wait for 300 milliseconds  

  digitalWrite(LEDpin, LOW);
  digitalWrite(LEDpin, HIGH);

  digitalWrite(LEDpin, LOW);
  delay(1000);// Wait for a second (keep it ON)
  digitalWrite(LEDpin, HIGH);
  delay(1000); // Wait for a second (keep it OFF)