diff --git a/src/main.cpp b/src/main.cpp index e7e3a04..145f502 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ Scheduler scheduler; constexpr int ONE_WIRE_BUS = D2; constexpr int VALVE_PIN = D5; -constexpr int ALARM_PIN = LED_BUILTIN; // TODO: change to separate pin +constexpr int ALARM_PIN = D7; OneWire one_wire(ONE_WIRE_BUS); DallasTemperature sensors(&one_wire); @@ -164,13 +164,17 @@ sensors.requestTemperatures(); static void SignalAlarm() { - for (int i = 0; i < 3; ++i) - { - digitalWrite(ALARM_PIN, LOW); - delay(100); - digitalWrite(ALARM_PIN, HIGH); - delay(100); - } + // for (int i = 0; i < 3; ++i) + // { + // digitalWrite(ALARM_PIN, LOW); + // delay(100); + // digitalWrite(ALARM_PIN, HIGH); + // delay(100); + // } + + digitalWrite(ALARM_PIN, LOW); + delay(1000); + digitalWrite(ALARM_PIN, HIGH); } static void SignalAlarmIfNeeded()