v2.3: Twinkling star animation extended to all menus and splash screen, WiFi submenu removed

This commit is contained in:
Eiswolf-BG
2026-08-05 05:49:51 +02:00
parent d89024e419
commit 59aa5af1b2
16 changed files with 129 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
#include "calibration_screen.h"
#include "touch_input.h"
#include "menu_stars.h"
#include "config.h"
#include "i18n.h"
@@ -21,10 +22,11 @@ namespace {
tft.fillCircle(x, y, 3, TFT_WHITE);
}
RawAvg waitForTap() {
RawAvg waitForTap(TFT_eSPI& tft) {
RawAvg avg;
while (!TouchInput::rawPoint().touched) {
MenuStars::update(tft);
delay(10);
}
@@ -73,7 +75,8 @@ void run(TFT_eSPI& tft) {
tft.setTextDatum(TL_DATUM);
drawTarget(tft, targets[i].x, targets[i].y);
samples[i] = waitForTap();
MenuStars::reset();
samples[i] = waitForTap(tft);
}
int16_t xmin = (samples[0].avgX() + samples[3].avgX()) / 2;