Created
February 11, 2016 03:54
-
-
Save JerrySievert/6e387f86143a6a26ec86 to your computer and use it in GitHub Desktop.
Revisions
-
JerrySievert created this gist
Feb 11, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #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); }