From cc081ebc1a36be8867b210ca0a3fcc83cc0af3bd Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 16 Feb 2026 02:11:46 -0800 Subject: [PATCH] snapshot --- .../DisplayManager.cpp | 19 +------------------ .../DoorbellLogic.cpp | 3 ++- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/sketches/doorbell-touch-esp32-32e/DisplayManager.cpp b/sketches/doorbell-touch-esp32-32e/DisplayManager.cpp index 8c800d3..7ee37b3 100644 --- a/sketches/doorbell-touch-esp32-32e/DisplayManager.cpp +++ b/sketches/doorbell-touch-esp32-32e/DisplayManager.cpp @@ -6,24 +6,7 @@ void DisplayManager::begin() { setBacklight(true); _tft.init(); - _tft.setRotation(1); // landscape: 480x320 - - // === DIAGNOSTIC: most basic text rendering === - _tft.fillScreen(TFT_BLUE); - _tft.setTextColor(TFT_WHITE); // no background color arg - _tft.setTextFont(1); // explicitly set GLCD font - _tft.setTextSize(3); - _tft.setCursor(10, 10); // absolute position, no datum - _tft.print("HELLO"); - _tft.setCursor(10, 60); - _tft.print("W:"); - _tft.print(_tft.width()); - _tft.setCursor(10, 110); - _tft.print("H:"); - _tft.print(_tft.height()); - delay(5000); - // === END DIAGNOSTIC === - + _tft.setRotation(1); _tft.fillScreen(COL_BLACK); } diff --git a/sketches/doorbell-touch-esp32-32e/DoorbellLogic.cpp b/sketches/doorbell-touch-esp32-32e/DoorbellLogic.cpp index 3fb6b05..1bd20e3 100644 --- a/sketches/doorbell-touch-esp32-32e/DoorbellLogic.cpp +++ b/sketches/doorbell-touch-esp32-32e/DoorbellLogic.cpp @@ -266,7 +266,8 @@ void DoorbellLogic::handleAlert(const String& msg) { if (_screen.alertHistoryCount < ALERT_HISTORY_SIZE) _screen.alertHistoryCount++; - Serial.printf("[ALERT] Accepted. ntfy time=%ld\n", (long)_alertMsgEpoch); + Serial.printf("[ALERT] Accepted. ntfy time=%ld history=%d\n", + (long)_alertMsgEpoch, _screen.alertHistoryCount); transitionTo(DeviceState::ALERTING); queueStatus("ALERTING", msg); }