Created
February 11, 2016 03:54
-
-
Save JerrySievert/6e387f86143a6a26ec86 to your computer and use it in GitHub Desktop.
hello world, esp8266
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
#include <ESP8266WiFi.h> | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Setup"); | |
pinMode(D2, OUTPUT); | |
} | |
void loop() { | |
static int state = LOW; | |
if (state == LOW) { | |
digitalWrite(D2, HIGH); | |
state = HIGH; | |
} else { | |
digitalWrite(D2, LOW); | |
state = LOW; | |
} | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
: error: 'D2' was not declared in this scope
digitalWrite(D2, HIGH);