diff options
| author | Luke Hoersten <[email protected]> | 2026-06-14 17:37:51 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-14 17:37:51 -0500 |
| commit | cbc4904aa35191f59aff93df5ed36f09f4cfa943 (patch) | |
| tree | ae854449c6665d1de2b418ec9bb10821b6ab5cef /main/touch.c | |
| parent | 18ddde394832beb812181003016ff73498ac72a3 (diff) | |
Info screen: full /config + /state dump, replaces identity screen
Previously the 4-line "identity" screen showed only viewport name, mDNS
host, IP, and state. Expanded to 15 lines covering the full GET /config
+ GET /state output (name, host, ip, state, configured, scrypted,
orientation, brightness, idle, fw, uptime, frames, errs, free heap,
free PSRAM), label/value pairs left-aligned with auto-scaled font.
Renames "identity" → "info" throughout — symbol, log messages,
README/TESTING references.
Also:
- Move the info-screen render's big locals (~1.6 KiB: lines[16][80] +
scrypt[256] + vp_name[64]) to BSS. The touch task's 3 KiB stack
was overflowing on every long-press, leaving whatever frame was
previously on the panel — gave the appearance of a "blue screen"
after the M5 test pattern.
- Drop the ≥5 s touch factory-reset gesture and remove all stale
references to it in docs and comments. NVS wipe is now a USB-side
`idf.py erase-flash` operation only.
- M5 follow-up TODO in jpeg_decoder.c: solid green renders ~black and
solid blue renders green; not a byte-order issue (BGR setting turns
red into blue). Tracked as a known M5 gap.
Diffstat (limited to 'main/touch.c')
| -rw-r--r-- | main/touch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/touch.c b/main/touch.c index b3ba42c..7cde4bf 100644 --- a/main/touch.c +++ b/main/touch.c @@ -25,7 +25,7 @@ static const char *TAG = "touch"; #define POLL_PERIOD_MS 30 #define TAP_MAX_MS 500 // < this on release = short tap (toggle) -#define LONG_PRESS_MS 1500 // ≥ this while held = identity overlay +#define LONG_PRESS_MS 1500 // ≥ this while held = info overlay #define OVERLAY_MS 15000 #define TAP_DEBOUNCE_MS 150 @@ -50,7 +50,7 @@ static void on_short_tap(void) static void on_long_press(void) { - ESP_LOGI(TAG, "long-press → identity overlay for %dms", OVERLAY_MS); + ESP_LOGI(TAG, "long-press → info overlay for %dms", OVERLAY_MS); if (display_is_up()) local_screens_overlay(OVERLAY_MS); } @@ -119,7 +119,7 @@ esp_err_t touch_init(void) return err; } ESP_LOGI(TAG, "FT5426 ack'd (dev_mode=0x%02x); " - "tap=toggle wake/sleep, %dms hold=identity overlay", + "tap=toggle wake/sleep, %dms hold=info overlay", dev_mode, LONG_PRESS_MS); BaseType_t ok = xTaskCreate(touch_task, "touch", 3072, NULL, 4, &s_task); |
