15 lines
450 B
C++
15 lines
450 B
C++
|
|
void setup() {
|
|
pinMode(13, OUTPUT); // Set pin 13 as output
|
|
Serial.begin(1151200); // Start serial communication at 9600 baud
|
|
}
|
|
|
|
void loop() {
|
|
digitalWrite(13, HIGH); // Turn the LED on
|
|
Serial.println("LED ON"); // Print status
|
|
delay(1000); // Wait 1 second
|
|
|
|
digitalWrite(13, LOW); // Turn the LED off
|
|
Serial.println("LED OFF"); // Print status
|
|
delay(1000); // Wait 1 second
|
|
} |