Arduino UnoEasy
Basic LED Blink
The Hello World of hardware engineering. Blinks an LED with exact timing control.
Target AI Prompt
"Blink an LED on Pin 13 every 1 second."
Hardware Connections
LED Anode (+)Positive leg of LED via 220Ω resistor
Pin 13LED Cathode (-)Negative leg connected to Ground
GNDLogic Explanation
This project initializes Pin 13 as a digital output. Inside the infinite loop(), it sets the pin voltage to HIGH (5V) to light the LED, waits for 1000ms, and sets it to LOW (0V) to turn it off.
Verified AuthorEmbedino Hardware FleetVerified expert compilation & hardware validation.
main.cpp
// Blink LED
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);
}Compile & Flash Online
Connect your Arduino and flash this exact example directly inside our web console.
Launch App Workspace →