Skip to content

Instantly share code, notes, and snippets.

@elktros
Last active February 9, 2021 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/d2357db3c674b01ea2121eea2abc64d8 to your computer and use it in GitHub Desktop.
Save elktros/d2357db3c674b01ea2121eea2abc64d8 to your computer and use it in GitHub Desktop.
Demo Code for Programming ESP8266 NodeMCU using VS Code and PlatformIO IDE.
#include <Arduino.h>
#define ledPin 16
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin, LOW);
Serial.println("LED is ON!!!");
delay(1000);
digitalWrite(ledPin, HIGH);
Serial.println("LED is OFF!!!");
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment