Scetch für den RTC ds3231 der mit Taster beim drücken die Uhrzeit anzeigt

Hallo Leute, für den ds3231 habe ich noch kein Scetch
ohne den RTC musste ich die Sekunden angeben wann die LEDs Leuchten
aber jetzt muss ich wahrscheinlich was Umschreiben hier der Scetch meiner Additions-Uhr. Es sind 1 bis 4 Minuten jeweils 1 LED, 5 Minuten 1 LED , 10 Minuten 1 LED, 20 Minuten 1 LED, 30 Minuten 1 LED, 40 Minuten 1 LED, 50 Minuten 1 LED, 1 Stunde 1 LED, jeweils 1 LED für 2, 4,. 6, 8 und 10 Stunden. Was bei mir anders ist als bei einer normalen Uhr die zweite LED und die dritte LED geht aus bei 3 bzw 4Min
das würde ich aber beim Taster so machen wie bei der normalen Additions-Uhr so das alle 5 LEDs brennen wenn 5 Minuten erreicht sind. Sie leuchten natürlch nur wenn der Taster gedrückt wird

/* Additionsuhr Sabrina 31,07,23 1H bei Zeile 232, 2H 439
3H 645, 4H 852, 5H 1056, 6H 1262, 7H 1467, 8H 1673
bei 9oder19Min sollte 4Gelb+1Grün= 1bis4+5 leuchten
1 bleibt an bei 5 1 ausgehen bei 30Min + 2s
15Min - 1s = 59940ms - 2:20Min - 1s = 59939ms*/
void setup() {
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(8, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A3, OUTPUT);
pinMode(A4, OUTPUT);
pinMode(A5, OUTPUT);
}
void loop() {
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//1h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(8, HIGH);//nur2h 
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//2+1h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(10, HIGH);//4h+2h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//1h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(11, HIGH);//2,4,6h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//6H+1
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(12, HIGH);//2,4,6,8h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//6H+1
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(13, HIGH);//2,4,6,8,10h
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);//6H+1
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(2, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(3, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(4, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A3, LOW);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, HIGH);
delay(59939);
digitalWrite(A1, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
delay(59939);
digitalWrite(A2, LOW);
digitalWrite(A3, HIGH);
delay(59939);
digitalWrite(A2, HIGH);
digitalWrite(A4, HIGH);
delay(59939);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);
digitalWrite(A5, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(8, LOW);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, LOW);//0=12
}

Solange du diese Zeile im Code hast, wird das mit dem Taster nix.
Ein paar Tipps zum Lernen: Beginne mit array und for. Dann if und millis. Und am Ende sollte dein Code in der loop max. 20 Zeilen haben.

Ein Grundsatz beim Programmieren: Doppelter Code ist schlechter Code. Und du hast 100derte Zeilen doppelt.

Und noch ein Tipp: Vergiss das es den Befehl delay gibt.

wenn man deinen Code liest, erkennt man nicht sofort welcher Pin welche LED antreibt.

Daher mache bitte einen Plan aus dem erkennbar ist, welcher Pin welche LED ansteuert, sodass dieser Satz erklärbar wird:

Wenn man einen Schaltplan hat, kann man dann vemutlich eine relativ einfache Funktion schreiben, der man einfach die Stunde und die Minute übergibt und dies auf den LEDs ausgibt.

Zumindest wäre das mein Weg.

delay() braucht es vermutlich nicht, aber zunächst schlage ich vor, man macht die Ausgabe einfacher/kürzer

Mit "Additionsuhr" findet man z.B. diesen Beitrag:

gut wäre es wenn du die Logik EXAKT bescchreiben würdest wie du dir das vorstellst.

edit:
wenn es so etwas werden soll:

das kann man vermutlich mit wenigen Zeilen Code schreiben.

edit: die Minuten in 42 Zeilen:
additionsuhr - Wokwi ESP32, STM32, Arduino Simulator

/*
  https://forum.arduino.cc/t/scetch-fur-den-rtc-ds3231-der-mit-taster-beim-drucken-die-uhrzeit-anzeigt/1161331/3
  2023-08-26 by noiasca
  code in Forum
*/

const uint8_t min1Pin[] = {2, 3, 4, 5}; // pins für die Einer
const uint8_t min5Pin = 6;              // pin für 5
const uint8_t min10Pin[] = {7, 8, 9, 10, 11}; // pins für die Zehner
const uint8_t hour1Pin = 12;
const uint8_t hour2Pin[] = {13, A0, A1, A2, A3}; // 2, 4, 6, 8, 10

uint8_t hh = 5;   // actual hour
uint8_t mm = 10;  // actual minute

// reset clock face
void deleteAll() {
  for (auto & i : min1Pin) digitalWrite(i, LOW);
  digitalWrite(min5Pin, LOW);
  for (auto & i : min10Pin) digitalWrite(i, LOW);
  digitalWrite(hour1Pin, LOW);
  for (auto & i : hour2Pin) digitalWrite(i, LOW);
}

// nur Ausgabe Minute - nur mehr für Tests
void displayMinute(byte actual = 0) {
  deleteAll();
  uint8_t min1 = actual % 5;
  uint8_t min5 = (actual % 10) >= 5;
  uint8_t min10 = actual / 10;
  if (min1) digitalWrite(min1Pin[min1 - 1], HIGH);
  if (min5) digitalWrite(min5Pin, HIGH);
  if (min10) digitalWrite(min10Pin[min10 - 1], HIGH);
  //testausgabe:
  Serial.print(actual); Serial.print("\t");
  Serial.print(min1); Serial.print("\t");
  Serial.print(min5); Serial.print("\t");
  Serial.print(min10);
  Serial.println();
}

// activates the needed LEDs according to hour and minute
void displayTime(byte hour, byte minute) {
  if (hour > 11 || minute > 59) {
    Serial.print(F("wrong time "));
    Serial.print(hour); Serial.print(":"); Serial.println(minute);
    return;
  }
  deleteAll();
  uint8_t min1 = minute % 5;
  uint8_t min5 = (minute % 10) >= 5;
  uint8_t min10 = minute / 10;
  uint8_t hour1 = hour % 2;  // switch on when odd
  uint8_t hour2 = hour / 2;
  if (min1) digitalWrite(min1Pin[min1 - 1], HIGH);
  if (min5) digitalWrite(min5Pin, HIGH);
  if (min10) digitalWrite(min10Pin[min10 - 1], HIGH);
  if (hour1) digitalWrite(hour1Pin, HIGH);
  if (hour2) digitalWrite(hour2Pin[hour2 - 1], HIGH);
  //testausgabe:
  Serial.print(hour); Serial.print(":"); Serial.print(minute); Serial.print("\t");
  Serial.print(hour1); Serial.print("\t");
  Serial.print(hour2); Serial.print("\t");
  Serial.print(min1); Serial.print("\t");
  Serial.print(min5); Serial.print("\t");
  Serial.print(min10);
  Serial.println();
}

// make the clock running
void clockRun() {
  const uint32_t interval = 2 * 1000UL; // 60*1000UL (one minute), or testwise 2*1000UL
  static uint32_t previousMillis = millis() - interval;
  if (millis() - previousMillis > interval) {
    previousMillis = millis();
    mm++;
    if (mm > 59) {
      mm = 0;
      hh++;
      if (hh > 11) hh = 0;
    }
    displayTime(hh, mm);
  }
}

void setup() {
  Serial.begin(115200);
  for (auto & i : min1Pin) pinMode(i, OUTPUT);
  pinMode(min5Pin, OUTPUT);
  for (auto & i : min10Pin) pinMode(i, OUTPUT);
  pinMode(hour1Pin, OUTPUT);
  for (auto & i : hour2Pin) pinMode(i, OUTPUT);

  //for (int i = 0; i < 60; i++) displayMinute(i);  // test
  //displayMinute(17); // test
  displayTime(11, 59); // test
  delay(3000);// dirty delay, just to make the test output visible
}

void loop() {
  clockRun();
}
1 Like

Das ist Spaghetticoder der schlimmsten Art und läßt sich durch 3 Zeilen realisieren.

Jeweils eine LED für
1
2
3
4
5
10
20
30
40
50 min
1
2
4
6
8
10 h

Jetzt habe ich aber nicht verstanden, wann welches LED an und wann aus sein soll.
Mach bitte eine Wahrheitstabbelle
Zb fülle angehängte EXCEL Tabelle aus:
Wahrheitstabelle.zip (8.2 KB)
Mußte ZIP machen da nur gewisse File-extention erlaubt sind.

Grüße Uwe

...
Hm.
Du möchtest jetzt nicht wissen, (an) was ich grad denke... :slight_smile: :rofl:

Nein, Will ich wirklich nicht. :innocent:

1 Like

Ok, ich versuch mich mal an dem, was mir dazu einfällt.
Eigentlich möchtest Du die aktuelle Zeit nur mit modulo / division aufteilen und ausgeben.
Das Problem dabei ist, das Du für die DS3231 SDA und SCL brauchst. Damit musst Du zwei LED-Pins verlegen.
Ich sehe noch 7 und 9 frei.
Ebenfalls frei ist A0.
Wenn Du die Pins umschaufelst, bekommst Du dafür 0/1 frei und kannst parallel auf dem seriellen Monitor mitverfolgen was da passiert.
Willste?

@my_xy_projekt hab dir den woki code in den post kopiert. Brauchst aus meiner Sicht nur noch die Stunden machen ...

Ach menno... Ich hab noch ein paar Baustellen und nebenbei schreib ich hier auch noch nen etwas längeren Text.
Aber ich hab mal drauf geschaut.
Na ist doch schick.
Genau das was ich schon im Kopf hatte. Ok, das mit dem &auto werd ich nicht mehr raffen, aber ansonsten ist der doch schon fertig.... :smiling_face:

Na komm, im Alter lernt man langsamer, aber wenn man will, lernt man doch noch was dazu.
Heißt übrigens auto& und auto ist der Datentyp, den man dem Compiler zu bestimmen überlässt. Und dann keine Kopie sondern eine Referenz auf die Elemente des Arrays (oder worüber eben iteriert werden soll).
Brauchst du ja nur zu verstehen, nicht aktiv zu verwenden.
Ein byte ist übrigens kleiner als eine Referenz auf ein byte, aber das ist keine wirkliche Optimierung.
Und wenn das Array nicht verändert werden soll, ist sogar
const auto & die optimale Schreibweise, wenn nicht schon das Array selbst als const definiert wurde.

2 Likes

Ich will nicht jammern.
Aber es ist mindestens 3 mal das Alter.

vielen Dank für eure Antworten also zu meinem Scatch, ich musste mich ja wiederholen um damit 1min später die nächste Änderung auf der Uhr sich einstellt, da ich ja keinen TCR hatte: @uwefed @noiasca
1 bis 5 Minuten jeweils 1 LED
A1 geht an
A2 geht an
A3 geht an
A4 geht an = 4Min
A1-A4 gehen aus und A5 geht an = 5Min
A1 geht an = 6Min
A2 geht an = 7Min
A3 geht an = 8Min
A4 geht an = 9Min
A1-A5 gehen aus und digital 1 geht an 10Min
dann wieder A1bis A4an aus, A5an, A1 bis A4an
digital 2 geht an 20Min
dann wieder A1bis A4an aus, A5an, A1 bis A4an
digital 3 geht an 30Min
dann wieder A1bis A4an aus, A5an, A1 bis A4an
digital 4 geht an 40Min//usw.
digital 5 50Min
digital 6 1Std.
digital 8 2Std.
digital 10 4Std.
digital 11 6Std.
digital 12 8Std.
digital 13 10 Std.
aber jetzt soll die Uhr alles übernehmen und die LEDs sollen nur angehen wenn der Taster gedrückt wird
ich werde erst mal alle Tips durchlesen und sehr wahrscheinl. den Tip von noiasca machen da Sie ja die Uhr kennt
@noiasca: ja das ist genau die Uhr die ich will aber 158€ und ich habe lieber ein Tisch- oder Taschenuhr (werde mir noch den Nano zulegen) ich werde mal deinen Code prob
@alle anderen tja es ist mir klar das ich die Minuten jetzt weglassen kann da ich ja den RTC gekauft habe, aber ich habe keine Ahnung wie ich den Code verändern muss, dann dazu noch den Taster mit einprogrammieren
@wwerner weiß nicht wie ich sonst die Schaltung hätte hinbekommen sollen

sorry das sagt mir nichts, ich habe den Code geschrieben, so wie es bei blinkende Dioden bei https://geekdiywiki.com/miuzei steht und er hat gefunzt außer die Millisekunden stimmten nicht die musste ich reduzieren
@michael_x da hast du recht ich werde das mit meinen 58 Jahren auch noch lernen

Jungspund :wink:

1 Like

Du hast keine RTC (TCR) aber Arduino hat einen Zähler der die Millisekunden seit dem Einschalten zählt. Dieser heißt millis();

ok Du hast Recht; es wurde ein 5-Zeiler:

byte min // 0-59
byte stu // 0-12
ledpin[] = {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}; // Pin der LED
ledstate[16]; // Status der entsprechenden LED
// LED 1 bis 4
for (i=0; i<16;i++) pinMode(ledpin[i] ,OUTPUT);

for (i=0; i<16;i++) ledstate[i] = 0; // LED löschen

LED setzen:
for (i=1;i<(min%5); i++) ledstate[i-1] = 1; // LED 1 bis 4 index(0 bis 3) Minuten 1-4
if (min%5 == 0 && min != 0) ledstate[4] = 1; // LED 5 Minute 5
for (i=0; i<min/10; i++) ledstate[5+i] = 1 // LED 6 bis 10 Minuten 10 bis 50
if (stu%2 == 1) ledstatus[11] =1; // ein Stunden LED
for (i=0; i<stu/2; i++) ledstatus[11+i] =1; // 2-Stunden 2-10

// LED an/ausschalten:
for (i=0; i<16;i++) digitalWrite (ledpin[i] ,ledstate[i]);

Hab nicht ausprobiert aber theoretisch müßte es so funktionieren.
Grüße Uwe

1 Like

@uwefed danke werde ich gerne prob. ja ist klar zu ausprobieren bin ich ja da
@fony danke
@noiasca also meine Uhr ist nicht ganz so schön wie der Tokio-Flash
so sieht meine Uhr aus
so sah sie vorher aus

mein Sketch zeigt dir ganz genau wie du minuten darstellen kannst.

Bevor wir von Stunden sprechen: funktioniert es für die Minuten so wie du es dir vorstellst?
Wenn nicht, bei welcher Minute wird was dargestellt was aus deiner Sicht wie dargestellt werden soll?

Ich habe mal den Sketch von @noiasca erweitert im die millis() statt delay(). Array, for und if sind ja schon benutzt.

/*
  https://forum.arduino.cc/t/scetch-fur-den-rtc-ds3231-der-mit-taster-beim-drucken-die-uhrzeit-anzeigt/1161331/3
*/
const uint8_t min1Pin[] = {2, 3, 4, 5}; // pins für die Einer
const uint8_t min5Pin = 6;              // pin für 5
const uint8_t min10Pin[] = {7, 8, 9, 10, 11}; // pins für die Zehner

byte minute = 0;
byte stunde = 0;
unsigned long lastTime = 0;
unsigned long actualTime = 0;

void deleteAll() {
  for (auto & i : min1Pin) digitalWrite(i, LOW);
  digitalWrite(min5Pin, LOW);
  for (auto & i : min10Pin) digitalWrite(i, LOW);
}

void displayMinute(byte actual = 0) {
  deleteAll();
  uint8_t min1 = actual % 5;
  uint8_t min5 = (actual % 10) >= 5;
  uint8_t min10 = actual / 10;
  if (min1) digitalWrite(min1Pin[min1 - 1], HIGH);
  if (min5) digitalWrite(min5Pin, HIGH);
  if (min10) digitalWrite(min10Pin[min10 - 1], HIGH);
 //testausgabe:
  Serial.print(actual); Serial.print("\t");
  Serial.print(min1); Serial.print("\t");
  Serial.print(min5); Serial.print("\t");
  Serial.print(min10);
  Serial.println();
  }

void setup() {
  Serial.begin(115200);
  for (auto & i : min1Pin) pinMode(i, OUTPUT);
  pinMode(min5Pin, OUTPUT);
  for (auto & i : min10Pin) pinMode(i, OUTPUT);
}

void loop() {
  actualTime = millis();
  if (actualTime-lastTime>1000){  //Hier später 60000
    lastTime = actualTime;
    minute++;
    if (minute > 59) {
      minute = 0;
      stunde++;
      if (stunde > 23) {
        stunde = 0;      
      }
    }
  displayMinute(minute);
  //displayStunde(stunde); // muss noch geschrieben werden
  }    
}
1 Like

vielen Dank für die viele Arbeit, ich komme leider erst nach meinem Urlaub dazu dies aus zu probieren. Wie man den TCR anschließt werde ich auch noch herausfinden. hier noch die Wahrheitstabelle einmal auch Ausführlich
Wahrheitstabelle1nicht-ausfuhrlich.zip (6,6 KB)
Wahrheitstabelle2alles.zip (6,9 KB)

ich schlage vor du meldest dich nach deinem Urlaub wieder.
Denn so ist das alles nur Stückwerk.


warum würde bei
Minute 1 die LED 1m, 2m, 3m, 4m, 6m 7m, 8m, 9m eingeschaltet werden?
Oder bei Minute 5 die LEDs 5m, 6m, 7m, 8m 9m
oder bei Minute 10 ausgerechnet die Led 50m?
und ab Minute 17 dann auf einmal überhaupt keine LEDs?

für die Nicht Urlauber:

/*
  https://forum.arduino.cc/t/scetch-fur-den-rtc-ds3231-der-mit-taster-beim-drucken-die-uhrzeit-anzeigt/1161331/3
  2023-08-26 by noiasca
  code in Forum
*/

const uint8_t min1Pin[] = {2, 3, 4, 5}; // pins für die Einer
const uint8_t min5Pin = 6;              // pin für 5
const uint8_t min10Pin[] = {7, 8, 9, 10, 11}; // pins für die Zehner
const uint8_t hour1Pin = 12;
const uint8_t hour2Pin[] = {13, A0, A1, A2, A3}; // 2, 4, 6, 8, 10

uint8_t hh = 5;   // actual hour
uint8_t mm = 10;  // actual minute

// reset clock face
void deleteAll() {
  for (auto & i : min1Pin) digitalWrite(i, LOW);
  digitalWrite(min5Pin, LOW);
  for (auto & i : min10Pin) digitalWrite(i, LOW);
  digitalWrite(hour1Pin, LOW);
  for (auto & i : hour2Pin) digitalWrite(i, LOW);
}

// nur Ausgabe Minute - nur mehr für Tests
void displayMinute(byte actual = 0) {
  deleteAll();
  uint8_t min1 = actual % 5;
  uint8_t min5 = (actual % 10) >= 5;
  uint8_t min10 = actual / 10;
  if (min1) digitalWrite(min1Pin[min1 - 1], HIGH);
  if (min5) digitalWrite(min5Pin, HIGH);
  if (min10) digitalWrite(min10Pin[min10 - 1], HIGH);
  //testausgabe:
  Serial.print(actual); Serial.print("\t");
  Serial.print(min1); Serial.print("\t");
  Serial.print(min5); Serial.print("\t");
  Serial.print(min10);
  Serial.println();
}

// activates the needed LEDs according to hour and minute
void displayTime(byte hour, byte minute) {
  if (hour >11 || minute >59){
    Serial.print(F("wrong time ")); 
    Serial.print(hour); Serial.print(":"); Serial.println(minute); 
    return;
  }
  deleteAll();
  uint8_t min1 = minute % 5;
  uint8_t min5 = (minute % 10) >= 5;
  uint8_t min10 = minute / 10;
  uint8_t hour1 = hour % 2;  // switch on when odd
  uint8_t hour2 = hour / 2;
  if (min1) digitalWrite(min1Pin[min1 - 1], HIGH);
  if (min5) digitalWrite(min5Pin, HIGH);
  if (min10) digitalWrite(min10Pin[min10 - 1], HIGH);
  if (hour1) digitalWrite(hour1Pin, HIGH);
  if (hour2) digitalWrite(hour2Pin[hour2 - 1], HIGH);
  //testausgabe:
  Serial.print(hour); Serial.print(":"); Serial.print(minute); Serial.print("\t");
  Serial.print(hour1); Serial.print("\t");
  Serial.print(hour2); Serial.print("\t");
  Serial.print(min1); Serial.print("\t");
  Serial.print(min5); Serial.print("\t");
  Serial.print(min10);
  Serial.println();
}

// make the clock running
void clockRun() {
  const uint32_t interval = 2 * 1000UL; // 60*1000UL (one minute), or testwise 2*1000UL
  static uint32_t previousMillis = millis() - interval;
  if (millis() - previousMillis > interval) {
    previousMillis = millis();
    mm++;
    if (mm > 59) {
      mm = 0;
      hh++;
      if (hh > 11) hh = 0;
    }
    displayTime(hh, mm);
  }
}

void setup() {
  Serial.begin(115200);
  for (auto & i : min1Pin) pinMode(i, OUTPUT);
  pinMode(min5Pin, OUTPUT);
  for (auto & i : min10Pin) pinMode(i, OUTPUT);
  pinMode(hour1Pin, OUTPUT);
  for (auto & i : hour2Pin) pinMode(i, OUTPUT);

  //for (int i = 0; i < 60; i++) displayMinute(i);  // test
  //displayMinute(17); // test
  displayTime(11, 59); // test
  delay(3000);// dirty delay, just to make the test output visible
}

void loop() {
  clockRun();
}

Du liest die Tabelle falsch.
Dreh die Leserichtung mal um 90°
[edit]

Mal schnell gemalt - keine Ahnung, ob das so geht, sollte das nicht lesbar sein, dreh ichs

Noch ne zweite Grafik gemacht, in der Hoffnung das ich das jetz trichtig aus #1 rausgelesen habe. (Danke @michael_x )