Created
February 26, 2018 20:16
-
-
Save Mr-Coxall/3b7518f9d3d8efbebc63ed3ae14e21e9 to your computer and use it in GitHub Desktop.
ESP8266 - Blink Sketch
This file contains 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
/* | |
* Created by: Mr. Coxall | |
* Created on: Feb 2018 | |
* | |
* This sketch is the standard "Blink" sketch | |
* to ensure you can actually connect and load a sketch | |
* I have also added a serial print, so that I know that is also working | |
* I have had to set it to 9600 baud to make it work correctly | |
*/ | |
void setup() { | |
// initialize Serial output | |
Serial.begin(9600); | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) | |
Serial.println("Hello, World!"); | |
delay(1000); // wait for a second | |
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW | |
delay(1000); // wait for a second | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment