Last active
February 9, 2021 08:48
-
-
Save elktros/d2357db3c674b01ea2121eea2abc64d8 to your computer and use it in GitHub Desktop.
Demo Code for Programming ESP8266 NodeMCU using VS Code and PlatformIO IDE.
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
#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