mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix INVERT_COLORS in lovyan driver #220
This commit is contained in:
parent
88a478d28e
commit
bbb6b099b3
@ -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
|
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
|
cfg.readable = prefs->getBool("readable", false); // true if data can be read
|
||||||
|
|
||||||
#ifdef INVERT_COLORS
|
// #ifdef INVERT_COLORS // This is configurable un Web UI
|
||||||
cfg.invert =
|
// cfg.invert =
|
||||||
prefs->getBool("invert", INVERT_COLORS != 0); // true if the light and darkness of the panel is reversed
|
// prefs->getBool("invert", INVERT_COLORS != 0); // true if the light and darkness of the panel is reversed
|
||||||
#else
|
// #else
|
||||||
cfg.invert = prefs->getBool("invert", false); // true if the light and darkness of the panel is reversed
|
cfg.invert = prefs->getBool("invert", false); // true if the light and darkness of the panel is reversed
|
||||||
#endif
|
// #endif
|
||||||
#ifdef TFT_RGB_ORDER
|
#ifdef TFT_RGB_ORDER
|
||||||
cfg.rgb_order = prefs->getBool("rgb_order", true); // true if the red and blue of the panel are swapped
|
cfg.rgb_order = prefs->getBool("rgb_order", true); // true if the red and blue of the panel are swapped
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user