diff --git a/sketches/doorbell-touch-esp32-32e/DisplayDriverGFX.cpp b/sketches/doorbell-touch-esp32-32e/DisplayDriverGFX.cpp index d4c5e25..30659d5 100644 --- a/sketches/doorbell-touch-esp32-32e/DisplayDriverGFX.cpp +++ b/sketches/doorbell-touch-esp32-32e/DisplayDriverGFX.cpp @@ -38,15 +38,12 @@ void Gfx::init() { return; } Serial.printf("[GFX] Display OK: %dx%d\n", SCREEN_WIDTH, SCREEN_HEIGHT); - _gfx->fillScreen(0xF800); - // RED TEST + _gfx->fillScreen(0xF800); // RED TEST delay(2000); - _gfx->fillScreen(0x07E0); - // GREEN TEST - delay(2000); - _gfx->fillScreen(0x001F); - // BLUE TEST - delay(2000); + _gfx->fillScreen(0x07E0); // GREEN TEST + delay(2000); + _gfx->fillScreen(0x001F); // BLUE TEST + delay(2000); _gfx->fillScreen(0x07E0); // GREEN TEST delay(2000); _gfx->fillScreen(0x001F); // BLUE TEST delay(2000); } void Gfx::setRotation(uint8_t r) { if (_gfx) _gfx->setRotation(r); } diff --git a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino index 1847f2a..c3d9d81 100644 --- a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino +++ b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino @@ -21,7 +21,9 @@ #endif #if USE_TFT_ESPI #ifndef ST7796_DRIVER - #error "TFT_eSPI setup mismatch — ST7796_DRIVER expected for E32R35T" + #if USE_TFT_ESPI +#error "TFT_eSPI setup mismatch — ST7796_DRIVER expected for E32R35T" +#endif #endif #endif #define HOLD_TO_SILENCE_MS 1000