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);

View File

@ -57,6 +57,9 @@ extern "C" {
#define TFT_OFFSET_X 0
#define TFT_OFFSET_Y 0
// T114 gets a muted yellow on black display
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 128)
// #define TFT_OFFSET_ROTATION 0
// #define SCREEN_ROTATE
// #define SCREEN_TRANSITION_FRAMERATE 5

View File

@ -49,7 +49,7 @@
#define SCREEN_TRANSITION_FRAMERATE 5
// Picomputer gets a white on black display
#define TFT_MESH COLOR565(0xFF, 0xFF, 0xFF)
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
#define CANNED_MESSAGE_MODULE_ENABLE 1

View File

@ -72,7 +72,7 @@
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
// Picomputer gets a white on black display
#define TFT_MESH COLOR565(0xFF, 0xFF, 0xFF)
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
// keyboard changes

View File

@ -96,7 +96,7 @@
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
// Picomputer gets a white on black display
#define TFT_MESH COLOR565(0xFF, 0xFF, 0xFF)
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
// keyboard changes

View File

@ -74,7 +74,7 @@
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
// Picomputer gets a white on black display
#define TFT_MESH COLOR565(0xFF, 0xFF, 0xFF)
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
// keyboard changes