rebrand and flip rortatoin

This commit is contained in:
2026-08-15 19:57:06 +02:00
parent b78069192b
commit 811d4f0ac9
7 changed files with 18 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ void run(TFT_eSPI& tft) {
// schon im Splash-Screen (splash_screen.cpp), da ein Eigenname // schon im Splash-Screen (splash_screen.cpp), da ein Eigenname
// ohnehin nicht uebersetzt wird. // ohnehin nicht uebersetzt wird.
tft.setCursor(10, 14); tft.setCursor(10, 14);
tft.println("Eiswolfs Flightradar"); tft.println("Leo's Flightradar");
tft.setCursor(10, 40); tft.setCursor(10, 40);
tft.println(I18n::t(StringId::ABOUT_DESC1)); tft.println(I18n::t(StringId::ABOUT_DESC1));
@@ -44,7 +44,7 @@ void run(TFT_eSPI& tft) {
tft.println(I18n::t(StringId::ABOUT_DESC2)); tft.println(I18n::t(StringId::ABOUT_DESC2));
tft.setCursor(10, 74); tft.setCursor(10, 74);
tft.println("(c) 2026 Eiswolf"); tft.println("(c) 2026 Leo");
tft.setCursor(10, 86); tft.setCursor(10, 86);
tft.print(I18n::t(StringId::ABOUT_VERSION_PREFIX)); tft.print(I18n::t(StringId::ABOUT_VERSION_PREFIX));

View File

@@ -89,6 +89,10 @@ namespace Config {
constexpr uint8_t TOUCH_MISO_PIN = 39; constexpr uint8_t TOUCH_MISO_PIN = 39;
constexpr uint8_t TOUCH_IRQ_PIN = 36; constexpr uint8_t TOUCH_IRQ_PIN = 36;
// Display-Rotation: 0 = normal (USB-Anschluss unten), 2 = 180 Grad
// gedreht (USB oben) - fuer Montage mit Ladebuchse oben.
constexpr uint8_t DISPLAY_ROTATION = 2;
constexpr int16_t SCREEN_WIDTH = 240; constexpr int16_t SCREEN_WIDTH = 240;
constexpr int16_t SCREEN_HEIGHT = 320; constexpr int16_t SCREEN_HEIGHT = 320;

View File

@@ -19,7 +19,7 @@ namespace {
// screen runs BEFORE language selection (see first_run_language_screen.cpp // screen runs BEFORE language selection (see first_run_language_screen.cpp
// for the same pattern with "Language / Sprache"), so no language has // for the same pattern with "Language / Sprache"), so no language has
// been chosen yet. // been chosen yet.
constexpr const char* TITLE = "Welcome to Eiswolfs Flightradar!"; constexpr const char* TITLE = "Welcome to Leo's Flightradar!";
// Centered, bold (1px-offset technique, same as the "Flightradar" // Centered, bold (1px-offset technique, same as the "Flightradar"
// button in first_run_complete_screen.cpp) word-wrapped title - // button in first_run_complete_screen.cpp) word-wrapped title -

View File

@@ -344,7 +344,7 @@ void drawHeader() {
tft.setTextColor(TFT_WHITE, TFT_BLACK); tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.setTextSize(1); tft.setTextSize(1);
tft.setCursor(6, 10); tft.setCursor(6, 10);
tft.println("Eiswolfs FR"); tft.println("Leos FR");
drawMenuButton(); drawMenuButton();
updateWifiIcon(); updateWifiIcon();
drawWeatherIcon(); drawWeatherIcon();
@@ -504,7 +504,7 @@ void setup() {
delay(300); delay(300);
tft.init(); tft.init();
tft.setRotation(0); tft.setRotation(Config::DISPLAY_ROTATION);
tft.setFreeFont(&UiFont11pt); tft.setFreeFont(&UiFont11pt);
tft.invertDisplay(true); tft.invertDisplay(true);
tft.fillScreen(TFT_BLACK); tft.fillScreen(TFT_BLACK);

View File

@@ -124,7 +124,7 @@ void begin(TFT_eSPI& tft) {
tft.setTextColor(TFT_GREEN, TFT_BLACK); tft.setTextColor(TFT_GREEN, TFT_BLACK);
tft.setTextSize(2); tft.setTextSize(2);
tft.drawString("Eiswolfs", cx, 28); tft.drawString("Leos", cx, 28);
tft.drawString("Flightradar", cx, 60); tft.drawString("Flightradar", cx, 60);
tft.setTextDatum(TL_DATUM); tft.setTextDatum(TL_DATUM);

View File

@@ -103,6 +103,11 @@ Point mappedPoint() {
out.x = clampi((int16_t)mx, 0, Config::SCREEN_WIDTH - 1); out.x = clampi((int16_t)mx, 0, Config::SCREEN_WIDTH - 1);
out.y = clampi((int16_t)my, 0, Config::SCREEN_HEIGHT - 1); out.y = clampi((int16_t)my, 0, Config::SCREEN_HEIGHT - 1);
if (Config::DISPLAY_ROTATION == 2) {
out.x = Config::SCREEN_WIDTH - 1 - out.x;
out.y = Config::SCREEN_HEIGHT - 1 - out.y;
}
return out; return out;
} }

View File

@@ -246,7 +246,7 @@ namespace {
FlightLogbook::DayEntry days[MAX_DAYS_QUERIED]; FlightLogbook::DayEntry days[MAX_DAYS_QUERIED];
uint8_t dayCount = FlightLogbook::listDays(days, MAX_DAYS_QUERIED); uint8_t dayCount = FlightLogbook::listDays(days, MAX_DAYS_QUERIED);
String html = htmlHeader("Eiswolfs Flightradar"); String html = htmlHeader("Leos Flightradar");
appendRadarSection(html); appendRadarSection(html);
@@ -357,7 +357,7 @@ namespace {
// die sich per Handy-Tastatur deutlich bequemer eintippen lassen als // die sich per Handy-Tastatur deutlich bequemer eintippen lassen als
// ueber die kleine Bildschirmtastatur des Geraets. // ueber die kleine Bildschirmtastatur des Geraets.
void handleLists() { void handleLists() {
String html = htmlHeader("Eiswolfs Flightradar - Lists"); String html = htmlHeader("Leos Flightradar - Lists");
html += "<nav><a href=\"/\">&larr; Logbook</a></nav>"; html += "<nav><a href=\"/\">&larr; Logbook</a></nav>";