Created
November 30, 2018 16:29
-
-
Save teopost/a21a48ebe6c2f96e9775e00a9eff6817 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESP8266 Blink | |
Blink the blue LED on the ESP8266 module | |
*/ | |
#include <Arduino.h> | |
#define LED 2 //Define blinking LED pin | |
void setup() { | |
pinMode(LED, OUTPUT); // Initialize the LED pin as an output | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(LED, LOW); // Turn the LED on (Note that LOW is the voltage level) | |
delay(1000); // Wait for a second | |
digitalWrite(LED, HIGH); // Turn the LED off by making the voltage HIGH | |
delay(1000); // Wait for two seconds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment