Compare commits

...
3 Commits
Author SHA1 Message Date
ftc 5a8fecf68c Prettier LCD info 2026-01-14 22:23:05 +03:00
ftc 9fce988d6b Merge branch 'master' of http://192.168.0.5:3000/ftc/hotwater 2026-01-14 22:04:20 +03:00
ftc 60e7bce631 Switched relay to other pin 2026-01-14 22:04:16 +03:00
+7 -5
View File
@@ -11,7 +11,7 @@
#define LCD_ROWS 2
#define LCD_ADDRESS 0x27
#define RELAY_PIN D7
#define RELAY_PIN D3
#define TEMP_SENSOR_PIN D5
// network
// After how much time without connection we will
@@ -172,11 +172,13 @@ void loop()
lcd.print(" (");
lcd.print(t_target / 100);
lcd.print(") ");
if (mode == MODE_ON) lcd.print("ON");
else lcd.print("OFF");
lcd.setCursor(0, 1);
lcd.print("S: ");
lcd.print(cur_state);
if (mode == MODE_ON)
{
if (cur_state == 1) lcd.print("HEAT");
else lcd.print("IDLE");
}
else lcd.print("OFF");
lcd.print(" WiFi: ");
lcd.print(WiFi.status());
}