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 55a8753..778c169 100644 --- a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino +++ b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino @@ -13,15 +13,17 @@ #include "Config.h" #include "DisplayManager.h" #include "DoorbellLogic.h" +#include "BoardConfig.h" #include #ifndef LOAD_GLCD #error "LOAD_GLCD is NOT defined — fonts missing!" #endif -#ifndef ST7796_DRIVER - #error "ST7796_DRIVER is NOT defined — wrong setup!" +#if USE_TFT_ESPI + #ifndef ST7796_DRIVER + #error "TFT_eSPI setup mismatch — ST7796_DRIVER expected for E32R35T" + #endif #endif - #define HOLD_TO_SILENCE_MS 1000 DoorbellLogic logic;