PCEval / esp32 /level1 /led_blink_basic /src /main_esp.cpp
eunzee's picture
upload Arduino Uno and ESP32 project files
8e53a3e verified
Raw History Blame Contribute Delete
285 Bytes
/**
Turns on an LED connected to a specified pin.
31 MAR 2025 by Blind Author
*/
#include <Arduino.h>
const int LED_PIN = 13;
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(1000);
digitalWrite(LED_PIN, LOW);
delay(1000);
}