Change alarm pin & pattern
This commit is contained in:
parent
856567adb2
commit
803000cf3e
16
src/main.cpp
16
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)
|
||||
{
|
||||
// for (int i = 0; i < 3; ++i)
|
||||
// {
|
||||
// digitalWrite(ALARM_PIN, LOW);
|
||||
// delay(100);
|
||||
// digitalWrite(ALARM_PIN, HIGH);
|
||||
// delay(100);
|
||||
// }
|
||||
|
||||
digitalWrite(ALARM_PIN, LOW);
|
||||
delay(100);
|
||||
delay(1000);
|
||||
digitalWrite(ALARM_PIN, HIGH);
|
||||
delay(100);
|
||||
}
|
||||
}
|
||||
|
||||
static void SignalAlarmIfNeeded()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user