25 lines
502 B
C++
25 lines
502 B
C++
/*********
|
|
Rui Santos
|
|
Complete project details at https://RandomNerdTutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/
|
|
*********/
|
|
|
|
#include <Arduino.h>
|
|
|
|
#define LED 2
|
|
|
|
void setup() {
|
|
// put your setup code here, to run once:
|
|
Serial.begin(115200);
|
|
pinMode(LED, OUTPUT);
|
|
}
|
|
|
|
void loop() {
|
|
// put your main code here, to run repeatedly:
|
|
digitalWrite(LED, HIGH);
|
|
Serial.println("LED is on");
|
|
delay(1000);
|
|
digitalWrite(LED, LOW);
|
|
Serial.println("LED is off");
|
|
delay(1000);
|
|
}
|