We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c910bfd commit 0d00e22Copy full SHA for 0d00e22
libraries/MySensors/examples/SecretKnockSensor/SecretKnockSensor.ino
@@ -101,7 +101,7 @@
101
chirp(500, 1500);
102
delay(500);
103
}
104
- while (digitalRead(programButton) == HIGH){
+ while (digitalRead(programButton) == LOW){
105
delay(10); // Hang around until the button is released.
106
107
@@ -172,6 +172,8 @@
172
if (programModeActive == false){ // Only do this if we're not recording a new knock.
173
if (validateKnock() == true){
174
// Lock/unlock door
175
+ chirp(500, 1500); // And play a tone in case the user can't see the LED.
176
+ chirp(500, 1000);
177
setLockState(!lockStatus, true);
178
} else {
179
Serial.println("fail unlock");
0 commit comments