This example code is in the public domain. http://www.arduino.cc/en/Tutorial/ForLoop int timer = 100; // The higher the number, the slower the timing.