5 LED Blink Slow Out of Sequence

 
Breadboard prototype test for Five LEDs with Atmel ATtiny45 microcontroller programmed with Arduino to slowly blink out of sequence.
Blink Order is: led3, led1, led5, led4, led2
 

 

Video can be found on The eTextile Lounge youTube channel.

Binary sketch size: 1,014 bytes (of a 4,096 byte maximum)

Error Message – IGNORE
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny45
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny45

/*Five LED Blink Slow Out of Sequence*/
/*order of illumination: LED 3, LED 1, LED 5, LED 4, LED 2*/
/*Arduino Uno v.1.0.3 as ISP for Atmel ATtiny45 internal 8MHz clock*/
/* using the digitalWrite() function*/
/*14 Ocotber 2014*/
/*lynne bruning for The eTextile Lounge*/
/*http://lbruning.com/etextilelounge*/

int led1 = 0;
int led2 = 1;
int led3 = 2;
int led4 = 3;
int led5 = 4;

// the setup routine runs once when you press reset:
void setup()

// initialize the digital pin as an output.

{
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop()

{
digitalWrite(led3, HIGH);
delay(1000);
digitalWrite(led3, LOW);
delay(1000);

digitalWrite(led1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led1, LOW); // turn the LED off (LOW is the voltage level)
delay(1000); // wait for a second

digitalWrite(led5, HIGH);
delay(1000);
digitalWrite(led5, LOW);
delay(1000);

digitalWrite(led4, HIGH);
delay(1000);
digitalWrite(led4, LOW);
delay(1000);

digitalWrite(led2, HIGH);
delay(1000);
digitalWrite(led2, LOW);
delay(1000);
}

 
Five LED Blink Slow Out of Sequence with ATtiny45 and Arduino Code