first commit
This commit is contained in:
24
ESP32_BLINK/ESP32_BLINK.ino
Normal file
24
ESP32_BLINK/ESP32_BLINK.ino
Normal file
@@ -0,0 +1,24 @@
|
||||
/*********
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user