Skip to content

Commit b619200

Browse files
Add sketch sketch_1747530230051.ino
1 parent dc888d1 commit b619200

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sketches/sketch_1747530230051.ino

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Basic LED Blink Example for Arduino
2+
// Works with Arduino Uno, Mega, Nano, and other ATmega boards
3+
4+
const int LED_PIN = 13; // Built-in LED on most Arduino boards
5+
6+
void setup() {
7+
// Initialize serial communication for debugging
8+
Serial.begin(115200);
9+
10+
// Set LED pin as output
11+
pinMode(LED_PIN, OUTPUT);
12+
13+
Serial.println("LED Blink Example Started");
14+
}
15+
16+
void loop() {
17+
digitalWrite(LED_PIN, HIGH); // Turn LED on
18+
Serial.println("LED ON");
19+
delay(5000); // Wait 500ms
20+
21+
digitalWrite(LED_PIN, LOW); // Turn LED off
22+
Serial.println("LED OFF");
23+
delay(500); // Wait 500ms
24+
}

0 commit comments

Comments
 (0)