int ledPin = 13; // Declare a variable for the LED pin
void setup() {
pinMode(ledPin, OUTPUT); // Set ledPin as output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn on the LED
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn off the LED
delay(1000); // Wait for 1 second
}
No comments:
Post a Comment