int i;
void setup() {
// put your setup code here, to run once:
for (i = 0; i < 54; i++) {
pinMode(i, OUTPUT);
}
}
void second() {
digitalWrite(53, HIGH); //2nd, 1/8
delay(1000);
digitalWrite(53, LOW);
}
void third() {
digitalWrite(50, HIGH); //3rd, 1/8
delay(1000);
digitalWrite(50, LOW);
}
void fourth() {
digitalWrite(51, HIGH); //4th, 1/8 (black thingy)
delay(1000);
digitalWrite(51, LOW);
}
void fifth() {
digitalWrite(48, HIGH); //5th, 1/8
delay(1000);
digitalWrite(48, LOW);
}
void sixth() {
digitalWrite(49, HIGH); //6th, 1/8
delay(1000);
digitalWrite(49, LOW);
}
void seventh() {
digitalWrite(46, HIGH); //7th, 1/8
delay(1000);
digitalWrite(46, LOW);
}
void twelve() {
digitalWrite(45, HIGH); //2nd, 1/8
delay(1000);
digitalWrite(45, LOW);
}
void thirteenth () {
digitalWrite(42, HIGH); //3rd, 1/8
delay(1000);
digitalWrite(42, LOW);
}
void fourteenth() {
digitalWrite(43, HIGH); //4th, 1/8 (black thingy)
delay(1000);
digitalWrite(43, LOW);
}
void fifteenth() {
digitalWrite(40, HIGH); //5th, 1/8
delay(1000);
digitalWrite(40, LOW);
}
void sixteenth() {
digitalWrite(41, HIGH); //6th, 1/8
delay(1000);
digitalWrite(41, LOW);
}
void seventeenth() {
digitalWrite(38, HIGH); //7th, 1/8
delay(1000);
digitalWrite(38, LOW);
}
void two() {
digitalWrite(53, HIGH); //2nd, 1/8
digitalWrite(45, HIGH); //2nd, 1/8
delay(1000);
digitalWrite(53, LOW);
digitalWrite(45, LOW);
}
void three() {
digitalWrite(50, HIGH); //3rd, 1/8
digitalWrite(42, HIGH); //3rd, 1/8
delay(1000);
digitalWrite(50, LOW);
digitalWrite(42, LOW);
}
void four() {
digitalWrite(51, HIGH); //4th, 1/8 (black thingy)
digitalWrite(43, HIGH); //4th, 1/8 (black thingy)
delay(1000);
digitalWrite(51, LOW);
digitalWrite(43, LOW);
}
void five() {
digitalWrite(48, HIGH); //5th, 1/8
digitalWrite(40, HIGH); //5th, 1/8
delay(1000);
digitalWrite(48, LOW);
digitalWrite(40, LOW);
}
void six() {
digitalWrite(49, HIGH); //6th, 1/8
digitalWrite(41, HIGH); //6th, 1/8
delay(1000);
digitalWrite(49, LOW);
digitalWrite(41, LOW);
}
void seven() {
digitalWrite(46, HIGH); //7th, 1/8
digitalWrite(38, HIGH); //7th, 1/8
delay(1000);
digitalWrite(46, LOW);
digitalWrite(38, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
//page one
//start of first thingy
fifteenth();
thirteenth();
sixteenth();
thirteenth();
fourteenth();
fifteenth();
//end of first thingy
//start of second thingy
thirteenth();
seventeenth();
sixteenth();
fifteenth();
fourteenth();
thirteenth();
//end of second thingy
//start of third thingy
twelve();
fifteenth();
thirteenth();
sixteenth();
thirteenth();
fourteenth();
//end of third thingy
//start of fourth thingy
fifteenth();
thirteenth();
seventeenth();
sixteenth();
fifteenth();
fourteenth();
//end of fourth thingy
//start of fifth thingy
thirteenth();
twelve();
thirteenth();
fifteenth();
thirteenth();
sixteenth();
//end of fifth thingy
//start of sixth thingy
thirteenth();
fourteenth();
fifteenth();
thirteenth();
seventeenth();
sixteenth();
//end of sixth thingy
//start of seventh thingy
fifteenth();
fourteenth();
thirteenth();
twelve();
fifteenth();
thirteenth();
//end of seventh thingy
//start of eighth thingy
sixteenth();
thirteenth();
fourteenth();
fifteenth();
thirteenth();
seventeenth();
//end of eighth thingy
//start of ninth thingy
sixteenth();
fifteenth();
fourteenth();
thirteenth();
twelve();
thirteenth();
//end of ninth thingy
//start of tenth thingy
five();
three();
six();
three();
four();
five();
//end of tenth thingy
//start of eleventh thingy
three();
seven();
six();
five();
four();
three();
//end of eleventh thingy
//start of twelveth thingy
two();
five();
three();
six();
three();
four();
//end of twelveth thingy
//start of thirteenth thingy
five();
three();
seven();
six();
five();
four();
//end of thirteenth thingy
//start of fourteenth thingy
three();
two();
three();
five();
three();
six();
//end of fourteenth thingy
//start of fifteenth thingy
three();
four();
five();
three();
seven();
six();
//end of fifteenth thingy
//end of page one
//page two
//start of sixteenth thingy
//end of sixteenth thingy
//start of seventeenth thingy
//end of seventeenth thingy
//start of eighteenth thingy
//end of eighteenth thingy
//start of nineteenth thingy
//end of nineteenth thingy
}