// Define the pin to which the LED is connected const int ledPin = D0; void setup() { // Set the LED pin as an OUTPUT pinMode(ledPin, OUTPUT); } void loop() { // Turn on the LED digitalWrite(ledPin, HIGH); // Wait for a moment (in milliseconds) delay(1000); // Turn off the LED digitalWrite(ledPin, LOW); // Wait for another moment delay(1000); }