Open link for codes and schematics
https://docs.google.com/leaf?id=0B71Lor6_w0akMjBkYmUzM2ItMTdiMS00NjIxLTg1ZTUtMjVjZThkMjExYjNj&hl=en_US
Or Copy and Paste the below.
3 in one
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT); //A4,A2,A1 are all ground
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
}
diagnol rotate
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
//1
digitalWrite(2, HIGH); //TURNS ON PIN2
delay(1);
digitalWrite(2, LOW); //TURNS OFF PIN2
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW); //SELECT'S THE MIDLE LAYER
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH); //TURNS ON PIN5
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW); //SELECTS THE BOTTOM LAYER
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW); //SELECT THE TOP LAYER
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//2
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//3
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//4
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//5
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//6
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//7
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(75); //HOW FAST IT CHANGIS
//8
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
}
firework
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
delay(500); //1
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
delay(500); //2
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
delay(500); //3
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
delay(100); //4
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
delay(100); //5
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4,HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
delay(100); //6
}
growing cube
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
delay(1000); //1
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
delay(1000); //2
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
delay(1000); //3
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
delay(1000); //4
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
delay(1000); //5
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
delay(1000); //6
}
rotating wall
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //1
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //2
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //3
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //4
}
spirol
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
delay(100);
digitalWrite(A1, HIGH);
delay(1);
delay(1000); //1
}
up
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //1
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1,HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //2
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1,HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //3
}
up and over
void setup() {
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A5, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(11, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A1, OUTPUT);
}
void loop() {
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
delay(100); //1
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1,HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //2
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1,HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //3
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(2, HIGH);
delay(1);
digitalWrite(2, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1,LOW);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(6, HIGH);
delay(1);
digitalWrite(6, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //4
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(4, HIGH);
delay(1);
digitalWrite(4, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1,LOW);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(5, HIGH);
delay(1);
digitalWrite(5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(7, HIGH);
delay(1);
digitalWrite(7, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //5
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(11, HIGH);
delay(1);
digitalWrite(11, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1,LOW);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A0, HIGH);
delay(1);
digitalWrite(A0, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, LOW);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, HIGH);
delay(1);
digitalWrite(A2, LOW);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
digitalWrite(A5, HIGH);
delay(1);
digitalWrite(A5, LOW);
delay(1);
digitalWrite(A4, LOW);
delay(1);
digitalWrite(A2, HIGH);
delay(1);
digitalWrite(A1, HIGH);
delay(1);
delay(100); //6
}
<