mirror of
https://github.com/bitlair/bitlair_doorduino.git
synced 2025-05-13 20:20:08 +02:00
disabled the horn because it resets the arduino
This commit is contained in:
parent
fe47245de1
commit
a258ef73ff
1 changed files with 11 additions and 8 deletions
|
@ -507,12 +507,14 @@ void ToggleLock()
|
|||
{
|
||||
for (uint8_t i = 0; i < 3; i++)
|
||||
{
|
||||
digitalWrite(PIN_HORN, HIGH);
|
||||
DelayLEDs(250);
|
||||
digitalWrite(PIN_HORN, LOW);
|
||||
DelayLEDs(250);
|
||||
//disabled because sounding the horn resets the arduino
|
||||
//digitalWrite(PIN_HORN, HIGH);
|
||||
DelayLEDs(500);
|
||||
//disabled because sounding the horn resets the arduino
|
||||
//digitalWrite(PIN_HORN, LOW);
|
||||
DelayLEDs(500);
|
||||
}
|
||||
DelayLEDs(8500);
|
||||
DelayLEDs(7000);
|
||||
}
|
||||
|
||||
Serial.println("finished lock action");
|
||||
|
@ -572,9 +574,10 @@ void loop()
|
|||
{
|
||||
Serial.print("iButton not authenticated\n");
|
||||
SetLEDState(LEDState_Busy);
|
||||
digitalWrite(PIN_HORN, HIGH);
|
||||
DelayLEDs(500);
|
||||
digitalWrite(PIN_HORN, LOW);
|
||||
//disabled because sounding the horn resets the arduino
|
||||
//digitalWrite(PIN_HORN, HIGH);
|
||||
//DelayLEDs(500);
|
||||
//digitalWrite(PIN_HORN, LOW);
|
||||
deniedcount = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue