mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 18:32:30 +02:00
Add color replacement for b/w
This commit is contained in:
@@ -5,12 +5,16 @@
|
||||
#include "OBP60Hardware.h"
|
||||
#include "LedSpiTask.h"
|
||||
#include "Graphics.h"
|
||||
#include <GxEPD2_BW.h> // E-paper lib V2
|
||||
#include <GxEPD2_BW.h> // GxEPD2 lib for b/w E-Ink displays
|
||||
#include <Adafruit_FRAM_I2C.h> // I2C FRAM
|
||||
#include <math.h>
|
||||
|
||||
#ifdef DISPLAY_ST7796
|
||||
#include <LovyanGFX.hpp> // TFT LCD lib for ST7796
|
||||
#include <LovyanGFX.hpp> // TFT LCD lib for ST7796 color displays
|
||||
#undef GxEPD_WHITE
|
||||
#define GxEPD_WHITE TFT_WHITE // Replacement color for white on TFT (OBPHardware.h)
|
||||
#undef GxEPD_BLACK
|
||||
#define GxEPD_BLACK TFT_BLACK // Replacement color for black on TFT (OBPHardware.h)
|
||||
#endif
|
||||
|
||||
#ifdef BOARD_OBP40S3
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
#define OBP_SPI_DIN 48
|
||||
#define OBP_TFT_OFFSET_X 10 // ST7796 operating x-offset for centered 400x300 content
|
||||
#define OBP_TFT_OFFSET_Y -20 // ST7796 operating y-offset for centered 400x300 content
|
||||
#define TFT_BLACK 0x0109 // Replacement color for black on TFT (RGB565)
|
||||
#define TFT_WHITE 0xFFFF // Replacement color for white on TFT (RGB565)
|
||||
#define SHOW_TIME 6000 // Show time in [ms] for logo and WiFi QR code
|
||||
#define FULL_REFRESH_TIME 600 // Refresh cycle time in [s][600...3600] for full display update (very important healcy function)
|
||||
#define GxEPD_WIDTH 400 // Display width
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <NMEA0183.h> // NMEA0183
|
||||
#include <NMEA0183Msg.h>
|
||||
#include <NMEA0183Messages.h>
|
||||
#include <GxEPD2_BW.h> // GxEPD2 lib for b/w E-Ink displays
|
||||
#include "OBP60Extensions.h" // Functions lib for extension board
|
||||
#include "OBP60Keypad.h" // Functions for keypad
|
||||
#include "OBPDataOperations.h" // Functions lib for data operations such as true wind calculation
|
||||
|
||||
Reference in New Issue
Block a user