some changes

This commit is contained in:
2026-01-17 16:01:54 +01:00
parent d1a8a50a8c
commit 7a9f9f868c
13 changed files with 7204 additions and 7205 deletions

View File

@@ -15,7 +15,6 @@
#include "scrolling_text.h"
#include "rtc.hpp"
extern bool RDSstatus;
extern bool RDSstatusold;
extern TFT_eSPI tft;
@@ -334,6 +333,7 @@ extern unsigned long tottimer;
extern unsigned long tuningtimer;
extern unsigned long udplogtimer;
extern unsigned long udptimer;
extern bool rds_settings_changed;
extern const size_t language_totalnumber;
extern const size_t language_entrynumber;

File diff suppressed because it is too large Load Diff

View File

@@ -5,11 +5,11 @@
class Console {
public:
explicit Console(TFT_eSPI* display) : tft(display), y(0) {}
void print(String text) {
tft->setTextColor(TFT_WHITE, TFT_BLACK);
void print(String text, uint16_t background = TFT_BLACK) {
tft->setTextColor(TFT_WHITE, background);
tft->setTextDatum(TL_DATUM);
auto data = "[" + String(millis() / 1000.0f) + "] " + text;
tft->fillRect(0, y, tft->textWidth(data), tft->fontHeight(0), TFT_BLACK);
tft->fillRect(0, y, tft->textWidth(data), tft->fontHeight(0), background);
tft->drawString(data, 0, y, 0);
y += tft->fontHeight(0);
}