/* BlinkMe3 Turn an LED on and off once per second (another improved version). */ // use variable ledPin to store the pin number that drives the LED int ledPin = 13; // define the LED's on and off times in milliseconds int onTime = 1000; int offTime = 1000; void setup() { pinMode(ledPin, OUTPUT); // make ledPin an output } void loop() { digitalWrite(ledPin, HIGH); // turn the LED on delay(onTime); // wait onTime mS digitalWrite(ledPin, LOW); // turn the LED off delay(offTime); // wait offTime mS }