From bbb6b099b37156069cfbbe1b3d64e056606af50c Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 12 Mar 2022 16:08:28 +0100 Subject: [PATCH] Fix INVERT_COLORS in lovyan driver #220 --- src/drv/tft/tft_driver_lovyangfx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drv/tft/tft_driver_lovyangfx.cpp b/src/drv/tft/tft_driver_lovyangfx.cpp index 7d2d799d..30d9512e 100644 --- a/src/drv/tft/tft_driver_lovyangfx.cpp +++ b/src/drv/tft/tft_driver_lovyangfx.cpp @@ -194,12 +194,12 @@ static void init_panel(lgfx::Panel_Device* panel, Preferences* prefs) prefs->getUInt("dummy_read_bits", 1); // bits of dummy read before reading data other than pixels cfg.readable = prefs->getBool("readable", false); // true if data can be read -#ifdef INVERT_COLORS - cfg.invert = - prefs->getBool("invert", INVERT_COLORS != 0); // true if the light and darkness of the panel is reversed -#else +// #ifdef INVERT_COLORS // This is configurable un Web UI +// cfg.invert = +// prefs->getBool("invert", INVERT_COLORS != 0); // true if the light and darkness of the panel is reversed +// #else cfg.invert = prefs->getBool("invert", false); // true if the light and darkness of the panel is reversed -#endif +// #endif #ifdef TFT_RGB_ORDER cfg.rgb_order = prefs->getBool("rgb_order", true); // true if the red and blue of the panel are swapped #else