Datumsstempel in Betrieb genommen
This commit is contained in:
parent
4144f13a1e
commit
ca605e439c
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue