mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
Merge pull request #3267 from agdl/KnockLockFix
Cleared numberOfKnocks variable
This commit is contained in:
commit
17837197d1
@ -140,6 +140,8 @@ void loop() {
|
|||||||
digitalWrite(greenLed, HIGH);
|
digitalWrite(greenLed, HIGH);
|
||||||
digitalWrite(redLed, LOW);
|
digitalWrite(redLed, LOW);
|
||||||
Serial.println("the box is unlocked!");
|
Serial.println("the box is unlocked!");
|
||||||
|
|
||||||
|
numberOfKnocks = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user