From 811d4f0ac90ba899d8749d81740a0e7f4cee4552 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 15 Aug 2026 19:57:06 +0200 Subject: [PATCH] rebrand and flip rortatoin --- src/about_screen.cpp | 4 ++-- src/config.h | 4 ++++ src/first_run_welcome_screen.cpp | 2 +- src/main.cpp | 4 ++-- src/splash_screen.cpp | 2 +- src/touch_input.cpp | 7 ++++++- src/web_export_server.cpp | 4 ++-- 7 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/about_screen.cpp b/src/about_screen.cpp index cc29b87..ff724d3 100644 --- a/src/about_screen.cpp +++ b/src/about_screen.cpp @@ -36,7 +36,7 @@ void run(TFT_eSPI& tft) { // schon im Splash-Screen (splash_screen.cpp), da ein Eigenname // ohnehin nicht uebersetzt wird. tft.setCursor(10, 14); - tft.println("Eiswolfs Flightradar"); + tft.println("Leo's Flightradar"); tft.setCursor(10, 40); tft.println(I18n::t(StringId::ABOUT_DESC1)); @@ -44,7 +44,7 @@ void run(TFT_eSPI& tft) { tft.println(I18n::t(StringId::ABOUT_DESC2)); tft.setCursor(10, 74); - tft.println("(c) 2026 Eiswolf"); + tft.println("(c) 2026 Leo"); tft.setCursor(10, 86); tft.print(I18n::t(StringId::ABOUT_VERSION_PREFIX)); diff --git a/src/config.h b/src/config.h index 3ff9a78..9a131f2 100644 --- a/src/config.h +++ b/src/config.h @@ -89,6 +89,10 @@ namespace Config { constexpr uint8_t TOUCH_MISO_PIN = 39; 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_HEIGHT = 320; diff --git a/src/first_run_welcome_screen.cpp b/src/first_run_welcome_screen.cpp index afac652..d4a25e9 100644 --- a/src/first_run_welcome_screen.cpp +++ b/src/first_run_welcome_screen.cpp @@ -19,7 +19,7 @@ namespace { // screen runs BEFORE language selection (see first_run_language_screen.cpp // for the same pattern with "Language / Sprache"), so no language has // 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" // button in first_run_complete_screen.cpp) word-wrapped title - diff --git a/src/main.cpp b/src/main.cpp index 40810e5..5ff9921 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -344,7 +344,7 @@ void drawHeader() { tft.setTextColor(TFT_WHITE, TFT_BLACK); tft.setTextSize(1); tft.setCursor(6, 10); - tft.println("Eiswolfs FR"); + tft.println("Leos FR"); drawMenuButton(); updateWifiIcon(); drawWeatherIcon(); @@ -504,7 +504,7 @@ void setup() { delay(300); tft.init(); - tft.setRotation(0); + tft.setRotation(Config::DISPLAY_ROTATION); tft.setFreeFont(&UiFont11pt); tft.invertDisplay(true); tft.fillScreen(TFT_BLACK); diff --git a/src/splash_screen.cpp b/src/splash_screen.cpp index 7bde750..5095987 100644 --- a/src/splash_screen.cpp +++ b/src/splash_screen.cpp @@ -124,7 +124,7 @@ void begin(TFT_eSPI& tft) { tft.setTextColor(TFT_GREEN, TFT_BLACK); tft.setTextSize(2); - tft.drawString("Eiswolfs", cx, 28); + tft.drawString("Leos", cx, 28); tft.drawString("Flightradar", cx, 60); tft.setTextDatum(TL_DATUM); diff --git a/src/touch_input.cpp b/src/touch_input.cpp index 1157a11..94c4b27 100644 --- a/src/touch_input.cpp +++ b/src/touch_input.cpp @@ -101,8 +101,13 @@ Point mappedPoint() { long mx = map((long)raw.x, calXmin, calXmax, MARGIN_PX, Config::SCREEN_WIDTH - MARGIN_PX); long my = map((long)raw.y, calYmin, calYmax, MARGIN_PX, Config::SCREEN_HEIGHT - MARGIN_PX); - 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); + + if (Config::DISPLAY_ROTATION == 2) { + out.x = Config::SCREEN_WIDTH - 1 - out.x; + out.y = Config::SCREEN_HEIGHT - 1 - out.y; + } return out; } diff --git a/src/web_export_server.cpp b/src/web_export_server.cpp index a4c6790..64947b3 100644 --- a/src/web_export_server.cpp +++ b/src/web_export_server.cpp @@ -246,7 +246,7 @@ namespace { FlightLogbook::DayEntry 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); @@ -357,7 +357,7 @@ namespace { // die sich per Handy-Tastatur deutlich bequemer eintippen lassen als // ueber die kleine Bildschirmtastatur des Geraets. void handleLists() { - String html = htmlHeader("Eiswolfs Flightradar - Lists"); + String html = htmlHeader("Leos Flightradar - Lists"); html += "";