Project 1 Arduino
Last updated
Last updated
#define LED 13 // LED connected to pin 13
void setup() {
pinMode(LED, OUTPUT); // Set the pin as output
}
void loop() {
digitalWrite(LED, HIGH); // Turn on the LED
delay(1000); // Wait a second
digitalWrite(LED, LOW); // Turn off the LED
delay(1000); // Wait a second
}