Datumsstempel in Betrieb genommen

This commit is contained in:
sven 2023-06-14 10:06:24 +02:00
parent 4144f13a1e
commit ca605e439c

View file

@ -112,6 +112,7 @@ pinMode(7, INPUT);
pinMode(8, OUTPUT); pinMode(8, OUTPUT);
pinMode(9, OUTPUT); pinMode(9, OUTPUT);
pinMode(10, OUTPUT); pinMode(10, OUTPUT);
pinMode(5, OUTPUT);
Serial.begin(9600); Serial.begin(9600);
@ -183,16 +184,15 @@ void loop() {
digitalWrite(12, LOW); digitalWrite(12, LOW);
previousMillisEti = currentMillisEti; previousMillisEti = currentMillisEti;
} }
if (run == 0 && digitalRead(11) == HIGH){ if (run == 0 && digitalRead(11) == HIGH && finish != 1){
delay(100); delay(100);
digitalWrite(5, HIGH); //löse Datumsstempel aus
delay(200);
digitalWrite(5, LOW); //löse Datumsstempel aus
finish = 1; finish = 1;
digitalWrite(6, HIGH); //löse Datumsstempel aus
delay(100);
digitalWrite(6, LOW); //löse Datumsstempel aus
gapDetected = 0; gapDetected = 0;
} }
UP_OLD = UP; UP_OLD = UP;
DOWN_OLD = DOWN; DOWN_OLD = DOWN;
ENTER_OLD = ENTER; ENTER_OLD = ENTER;