const int ledPin = 2; // GPIO pin connected to the LED

void setup() {
   pinMode(ledPin, OUTPUT); // Set the GPIO pin as an output
}

void loop() {
   digitalWrite(ledPin, HIGH); // Turn on the LED
   delay(1000); // Wait for one second
   digitalWrite(ledPin, LOW); // Turn off the LED
   delay(1000); // Wait for one second
}