5 LED Blink Slow in Sequence

 

 
New video on The eTextile Lounge youTube channel!.

Arduino Code can be uploaded to ATtiny45 using the Arduino as ISP Tutorial
 
/*FIVE LED Blink Slow in Sequence*/
/*Arduino Uno v.1.0.3 as ISP for Atmel ATtiny45 internal 8MHz clock*/
/*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(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(led2, HIGH);
delay(1000);
digitalWrite(led2, LOW);
delay(1000);

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

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

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

When you upload the code you will receive the following information on the Arduino window:

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

Error Message – Ignore it.
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