/* * BlinkVariable - Variable delay blinking based on the * Blink tutorial. * Author: Todd W. Neller * * See http://www.arduino.cc/en/Tutorial/Blink */ int ledPin = 13; // LED connected to digital pin 13 void setup() // run once, when the sketch starts { pinMode(ledPin, OUTPUT); // sets the digital pin as output } void loop() // run over and over again { for (int i = 1000; i >= 10; i = i * 9 / 10) { digitalWrite(ledPin, HIGH); // sets the LED on delay(i); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(i); // waits for a second } }