mirror of
https://github.com/Skysamara/hydro.git
synced 2025-12-06 06:16:01 +00:00
25 lines
567 B
C++
25 lines
567 B
C++
|
|
|
|
BLYNK_WRITE(V0) // Длительность полива первой помпы
|
|
{
|
|
setPumpDuration(param.asInt());
|
|
}
|
|
|
|
BLYNK_WRITE(V1) // Установка времени старта полива
|
|
{
|
|
// You'll get HIGH/1 at startTime and LOW/0 at stopTime.
|
|
// this method will be triggered every day
|
|
// until you remove widget or stop project or
|
|
// clean stop/start fields of widget
|
|
|
|
Serial.print("Таймер: ");
|
|
// Serial.println(pump1.GetCurrentDuration());
|
|
|
|
// pump1.Start();
|
|
}
|
|
|
|
BLYNK_WRITE(V4) // Кнопка помпы 1
|
|
{
|
|
pump1.Start();
|
|
}
|