Software auf HW angepasst, Pin geschaltet ergibt LOW in CPU und umgekehrt,
Fehlerchen entfernt.
This commit is contained in:
parent
8e847d9c3b
commit
f792080b8c
|
@ -158,8 +158,8 @@ void loop() {
|
|||
}
|
||||
|
||||
unsigned long currentMillisEti = millis();
|
||||
Motor = MotorDelay * 100;
|
||||
if (digitalRead(11) == HIGH && run == 0 && finish == 1){
|
||||
Motor = MotorDelay * 20;
|
||||
if (digitalRead(11) == LOW && run == 0 && finish == 1){
|
||||
run = 1;
|
||||
finish = 0;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ void loop() {
|
|||
if (digitalRead(7) == HIGH){
|
||||
gapDetected = 1;
|
||||
}
|
||||
if(gapDetected = 1) {
|
||||
if(gapDetected == 1) {
|
||||
if (currentMillisEti - previousMillisEti >= Motor) {
|
||||
previousMillisEti = currentMillisEti;
|
||||
run = 0;
|
||||
|
@ -182,14 +182,16 @@ void loop() {
|
|||
digitalWrite(12, LOW);
|
||||
previousMillisEti = currentMillisEti;
|
||||
}
|
||||
if (run == 0 && digitalRead(11) == 0){
|
||||
if (run == 0 && digitalRead(11) == HIGH){
|
||||
finish = 1;
|
||||
gapDetected = 0;
|
||||
}
|
||||
|
||||
|
||||
UP_OLD = UP;
|
||||
DOWN_OLD = DOWN;
|
||||
ENTER_OLD = ENTER;
|
||||
|
||||
}
|
||||
|
||||
void testdrawbitmap(void) {
|
||||
|
|
Loading…
Reference in a new issue