
second47.blogspot.com
ExpansionFriday, July 9, 2010. Blinks the led on pin 13 in the fibonacci sequence - at least until it hits the max value of a long, and then rolls over. Int ledPin = 13; / LED connected to digital pin 13. Long seq1 = 1; / Sequence number 1. Long seq2 = 2; / Sequence number 2. Long seq3 = 3; / Sequence number 3. The setup() method runs once, when the sketch starts. Initialize the digital pin as an output:. PinMode(ledPin, OUTPUT);. The loop() method runs over and over again,. As long as the Arduino has power.
http://second47.blogspot.com/