Create TFT_MESH_OVERRIDE for variants.h and defined colors

This commit is contained in:
Jason P
2025-06-30 22:45:11 -05:00
parent 3291824353
commit 102500adfb
7 changed files with 12 additions and 9 deletions

View File

@@ -15,8 +15,11 @@
extern SX1509 gpioExtender;
#endif
// Legacy Color: 0x67, 0xEA, 0x94
uint16_t TFT_MESH = COLOR565(255, 255, 128);
#ifdef TFT_MESH_OVERRIDE
uint16_t TFT_MESH = TFT_MESH_OVERRIDE;
#else
uint16_t TFT_MESH = COLOR565(0x67, 0xEA, 0x94);
#endif
#if defined(ST7735S)
#include <LovyanGFX.hpp> // Graphics and font library for ST7735 driver chip

View File

@@ -20,9 +20,6 @@ class TFTDisplay : public OLEDDisplay
*/
TFTDisplay(uint8_t, int, int, OLEDDISPLAY_GEOMETRY, HW_I2C);
// Legacy Color: 0x67, 0xEA, 0x94
uint16_t TFT_MESH = COLOR565(255, 255, 128);
// Write the buffer to the display memory
virtual void display() override { display(false); };
virtual void display(bool fromBlank);