rebrand and flip rortatoin
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 -
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 += "<nav><a href=\"/\">← Logbook</a></nav>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user