From a2e743b19f369791f6f860a3ccd7fd1ace43d514 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 8 May 2021 17:38:51 +0200 Subject: [PATCH] changed #ifdef for lvgl --- tasmota/tasmota_configurations_ESP32.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index c976ca364..9c36aa15e 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -108,13 +108,16 @@ #define USE_MPU6886 #define USE_SPI #define USE_DISPLAY - - #ifndef USE_UNIVERSAL_DISPLAY - #define USE_DISPLAY_ILI9341 - #define USE_TOUCH_BUTTONS - #define MAX_TOUCH_BUTTONS 16 - #endif - +#ifdef USE_UNIVERSAL_DISPLAY + #define USE_LVGL + #define USE_DISPLAY_LVGL_ONLY + #define USE_TOUCH_SCREEN +#else + #define USE_DISPLAY_ILI9341 // [DisplayModel 4] Enable ILI9341 Tft 480x320 display (+19k code) + #define USE_DISPLAY_MODES1TO5 + #define USE_TOUCH_BUTTONS + #define MAX_TOUCH_BUTTONS 16 +#endif #define JPEG_PICTS #define USE_FT5206