You've already forked TEF6686_ESP32
some changes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
12914
include/language.h
12914
include/language.h
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user