const int ledPin = 10;//define the LED pin void setup() { pinMode(ledPin,OUTPUT);//initialize the digital pin as an output } void loop() { digitalWrite(ledPin,HIGH);//turn the LED on delay(1000); //wait for a second digitalWrite(ledPin,LOW); //turn the LED off delay(1000); //wait for a second }