Documentazione firmwareFirmware documentation

Sintesi bilingue dei 14 documenti in docs/: undici guide correnti e tre handoff storici. Ogni cifra qui è stata confrontata con il codice del firmware, e le contraddizioni rimaste sono elencate in fondo. Bilingual synthesis of the 14 documents in docs/: eleven current guides and three historical handoffs. Every figure here was checked against the firmware source, and the contradictions that remain are listed at the bottom.

14 documenti / documents 56 espressioni / expressions 49 atti / acts 115 route IT / EN
Schermata Informazioni della web UI

Le fontiThe sources

Undici documenti descrivono il firmware attuale; tre handoff descrivono un passato superato il 20 novembre 2026 e non sono un contratto.Eleven documents describe the current firmware; three handoffs describe a past superseded on 20 November 2026 and are not a contract.

DocumentoDocumentTemaTopicStatoStatus
README.mdIndice, versione, artefatto di rilascio, stato OTAIndex, version, release artifact, OTA statuscorrente / current
1-Architettura.mdShell, ciclo di vita delle app, task, RAM, configurazione, alimentazione, notifiche, lingueShell, app lifecycle, tasks, RAM, configuration, power, notifications, languagescorrente / current
2-Hardware.mdPannello, touch, audio, IMU, alimentazione, SD, comandiPanel, touch, audio, IMU, power, SD, controlscorrente / current
3-Compilazione-e-flash.mdToolchain, build, flash, primo avvio, diagnostica seriale, emulatoreToolchain, build, flash, first boot, serial diagnostics, emulatorcorrente / current
4-Standard-di-sviluppo.mdConvenzioni, disegno, input, limiti del server web, errori ricorrentiConventions, drawing, input, web-server limits, recurring failurescorrente / current
5-API-HTTP.mdSuperficie HTTP completa, app, schermo, configurazione, media, voce, streaming, file, BLE, visoComplete HTTP surface, apps, screen, configuration, media, voice, streaming, files, BLE, facecorrente / current
6-Rete.mdStati di rete, ritenta, risparmio radio, trasporti, BLE, orologio NTP/RTCNetwork states, retry, radio power saving, transports, BLE, NTP/RTC clockcorrente / current
7-Testing.mdVerifica sul dispositivo, riferimenti prestazionali, prove di tocco e app, criteri di accettazioneDevice verification, performance baselines, touch and app tests, acceptance criteriacorrente / current
8-Limiti-e-aperto.mdLimiti strutturali, fattibilità OTA, esperimenti falliti, lavoro apertoStructural limits, OTA feasibility, failed experiments, open workcorrente / current
9-Lingua.mdLingua del vetro e della pagina, meccanismi di traduzione, coperturaGlass and web language, translation mechanisms, coveragecorrente / current
10-Sintesi-vocale-locale.mdIl server vocale self-hosted (anche su Android), la catena voce senza cloud e senza costiThe self-hosted voice server (Android capable), the voice chain without cloud and without costscorrente / current
handoffs/2026-11-12-i2c-boot-stability-mp3-uiStabilità di avvio, MP3, reattività della UI, profilazioneBoot stability, MP3, UI responsiveness, profilingstorico / historical
handoffs/2026-11-14-analisi-architetturaleDiagnosi dell'architettura e piano di rifattorizzazioneArchitecture diagnosis and refactoring planstorico / historical
handoffs/2026-11-14-verifica-visiva-ui-fixDifetti visivi della UI e correzioni, in tre passateUI visual defects and fixes, in three passesstorico / historical
Come leggere questa pagina:How to read this page: è un riassunto, non una copia. Il contratto completo resta nei file in docs/; dove i documenti e il codice non concordano, vale il codice e la divergenza è segnalata in Contraddizioni. this is a summary, not a copy. The complete contract stays in the files under docs/; where the documents and the code disagree, the code wins and the divergence is flagged in Contradictions.
Documento collegato — la voce locale:Related document — the local voice: la catena voce (LLM, STT, TTS) è servita da un server esterno: il percorso self-hosted, offline e senza servizi a pagamento è documentato in 10-Sintesi-vocale-locale.md, con il server AiLocalVoiceServer (C#/.NET 10, API OpenAI-compatible e Voicebox-compatible, app Android nativa). Il robot non va modificato: basta l'URL del profilo http://:17500. the voice chain (LLM, STT, TTS) is served by an external server: the self-hosted, offline and pay-free path is documented in 10-Sintesi-vocale-locale.md, with the AiLocalVoiceServer server (C#/.NET 10, OpenAI-compatible and Voicebox-compatible APIs, native Android app). The robot needs no change: only the profile URL http://:17500.

ArchitetturaArchitecture

Una shell possiede il framebuffer e il ciclo; le app sono overlay, non processi. Solo una app è attiva alla volta.A shell owns the framebuffer and the loop; apps are overlays, not processes. Only one app is active at a time.

La shell e il registroThe shell and the registry

  • main.cpp possiede framebuffer, ciclo, input, launcher, HUD, badge e servizio voce.main.cpp owns the framebuffer, the loop, input, launcher, HUD, badge, and voice service.
  • Ogni App dichiara onOpen, onUpdate, onDraw, onKey, onClose: ciò che onOpen acquista, onClose rilascia.Each App declares onOpen, onUpdate, onDraw, onKey, onClose: whatever onOpen acquires, onClose releases.
  • 13 app oltre al viso; launcher e wifi sono nascoste: 11 voci visibili.13 apps besides the face; launcher and wifi are hidden: 11 visible entries.
  • onKey restituisce true solo se ha consumato l'evento; frameMs è un tetto, 0 significa più veloce possibile.onKey returns true only if it consumed the event; frameMs is an upper bound, 0 means as fast as possible.

L'ordine del frameThe frame order

  • Sensori → Brain → Face → app → touch → pushFrame → retroilluminazione → voce.Sensors → Brain → Face → app → touch → pushFrame → backlight → voice.
  • Lo stack del loop Arduino è portato a 16 KB: i 8 KB di default facevano scattare il canary.The Arduino loop stack is raised to 16 KB: the default 8 KB triggered the stack canary.
  • Il decoder MP3 è una risorsa del player: mp3dec_t statico, task creato alla prima riproduzione e cancellato alla fine.The MP3 decoder is a player resource: static mp3dec_t, task created on first play and deleted when playback ends.
  • eco porta la cadenza da 30 a 15 fps; wifiSleep abilita il risparmio radio.eco moves the cadence from 30 to 15 fps; wifiSleep enables radio power saving.

La memoriaMemory

  • PSRAM: framebuffer 322 KB, buffer del decoder 16 KB, MJPEG ~700 KB, thumbnail ~80 KB, ROM GBC 32 KB–8 MB, framebuffer e cart RAM del Game Boy ~78 KB.PSRAM: 322 KB framebuffer, 16 KB decoder buffers, ~700 KB MJPEG, ~80 KB thumbnails, 32 KB–8 MB GBC ROM, ~78 KB GBC framebuffer and cart RAM.
  • Interno: Wi-Fi, lwIP, TLS e web ~40 KB: è il vincolo che rende una sola app alla volta.Internal: Wi-Fi, lwIP, TLS and web ~40 KB: the constraint that makes one app at a time necessary.
  • CONFIG_SPIRAM_USE_MALLOC=1 con ALWAYSINTERNAL=4096: i buffer grandi in PSRAM, le strutture piccole interne.CONFIG_SPIRAM_USE_MALLOC=1 with ALWAYSINTERNAL=4096: large buffers in PSRAM, small structures internal.
  • Il canvas usa tile da 24 px in una griglia 16×19; le righe sporche viaggiano come bande DMA contigue.The canvas uses 24 px tiles in a 16×19 grid; dirty rows travel as contiguous DMA bands.

Configurazione canonica. Quattro file JSON sulla SD: /system.json, /wifi.json, /feeds.json, /streams.json. Ognuno viene scritto come <file>.tmp e poi rinominato, con copia di riserva quando la rinomina FAT fallisce. La NVS contiene solo dati di migrazione e stato non coperto dalla SD.Canonical configuration. Four JSON files on the SD: /system.json, /wifi.json, /feeds.json, /streams.json. Each is written as <file>.tmp and then renamed, with a copy fallback when the FAT rename fails. NVS holds migration data and state not covered by the SD.

GET /api/config esporta la configurazione; il vecchio POST /api/config monolitico risponde HTTP 410 e non va più usato.GET /api/config exports the configuration; the old monolithic POST /api/config answers HTTP 410 and must no longer be used.

Energia e risveglio. Dopo idleDim minuti senza input la CPU scende a 80 MHz e la luminosità al 45% (mai sotto il 14%); dopo idleOff minuti il pannello va in display-off. 0 significa mai. Si sveglia con un tasto breve, con il movimento (|g−1| > 0.6) o con un tocco tenuto almeno 500 ms: in questo caso il rilascio viene consumato.Power and wake. After idleDim minutes without input the CPU drops to 80 MHz and brightness to 45% (never below 14%); after idleOff minutes the panel enters display-off. 0 means never. The device wakes on a short button press, on movement (|g−1| > 0.6), or on a touch held for at least 500 ms, in which case the release is consumed.

Notifiche e lingue. Il Notifier è una coda fissa di 4 messaggi in PSRAM, 512 caratteri per messaggio, senza heap, con antiflood di 20 secondi per categoria. La lingua del vetro (lang) e quella della pagina (webLang) sono indipendenti: il vetro può essere in italiano mentre la pagina è in inglese.Notifications and languages. The Notifier is a fixed 4-message queue in PSRAM, 512 characters per message, with no heap and a 20-second anti-flood per category. The glass language (lang) and the page language (webLang) are independent: the glass can be Italian while the page is English.

TaskTaskStackStack
loop16 KB
player4 KB
listener6 KB
music8 KB
news / camera12 KB
voice / chat / gemini24 KB
mp3conv32 KB
ble scan / inspect6 / 8 KB

HardwareHardware

Waveshare ESP32-S3-Touch-AMOLED-1.8 V2, ESP32-S3-WROOM-1 N16R8: 16 MB di flash, 8 MB di PSRAM ottale. I pin sono definiti in Config.h.Waveshare ESP32-S3-Touch-AMOLED-1.8 V2, ESP32-S3-WROOM-1 N16R8: 16 MB flash, 8 MB octal PSRAM. The pins are defined in Config.h.

PerifericaPeripheralDettagliDetails
PannelloPanel CO5300 AMOLED 368×448 px, 1.8", RGB565, QSPI a 4 linee a 80 MHz, LCD_X_GAP=16 (il pin 0 delle 368 colonne è la colonna 16 della GRAM). CS 12, SCLK 11, SDIO0..3 4/5/6/7.CO5300 AMOLED 368×448 px, 1.8", RGB565, 4-line QSPI at 80 MHz, LCD_X_GAP=16 (pin 0 of the 368 visible columns is GRAM column 16). CS 12, SCLK 11, SDIO0..3 4/5/6/7.
TouchTouch CST816S con fallback CST820, un solo punto capacitivo, I2C a 400 kHz all'indirizzo 0x15, INT su GPIO 21. Il pan è un trascinamento, non un multitouch. Il chip si identifica al boot perché i due controller condividono l'indirizzo ma non i registri.CST816S with CST820 fallback, one capacitive point, 400 kHz I2C at address 0x15, INT on GPIO 21. Panning is a drag, not multi-touch. The chip is identified at boot because the two controllers share the address but not the register map.
AudioAudio ES8311 all'indirizzo 0x18, I2S MCLK 16, BCLK 9, WS 45, DOUT 8, DIN 10, amplificatore abilitato da GPIO 46. Ingresso microfonico mono single-ended dal canale RX: una sola capsula, non quattro canali TDM.ES8311 at address 0x18, I2S MCLK 16, BCLK 9, WS 45, DOUT 8, DIN 10, amplifier enabled by GPIO 46. Microphone input is single-ended mono from the RX channel: one capsule, not four-channel TDM.
IMUIMU QMI8658 all'indirizzo 0x6B (o 0x6A): serve per inclinazione e scuotimento.QMI8658 at address 0x6B (or 0x6A): used for tilt and shake.
Alimentazione e RTCPower and RTC AXP2101 all'indirizzo 0x34, PCF85063A all'indirizzo 0x51; campionamento a 1 Hz con ~100 ms di assestamento dell'ADC. PWR passa da TCA9554 EXIO4, attivo alto; lo spegnimento hardware richiede ~6 secondi di pressione.AXP2101 at address 0x34, PCF85063A at address 0x51; sampling at 1 Hz with ~100 ms of ADC settling. PWR goes through TCA9554 EXIO4, active high; hardware shutdown takes about 6 seconds of pressure.
SD e comandiSD and controls SD a un bit: CLK 2, CMD 1, D0 3; LittleFS 6 MB e FAT su /sparky. BOOT è GPIO 0 attivo basso. I tre comandi sul vetro occupano x = 61 / 184 / 307 px a y = 417 px.One-bit SD: CLK 2, CMD 1, D0 3; 6 MB LittleFS and FAT at /sparky. BOOT is GPIO 0, active low. The three glass controls sit at x = 61 / 184 / 307 px, y = 417 px.
CoordinateCoordinates Sul vetro si ragiona in unità di faccia: 1 FU = 2.875 px, 128 FU di larghezza, origine del pixel a X = 0, Y = 129. I gesti sono in FU, mentre Touch::hitButton lavora in pixel.On the glass you think in face units: 1 FU = 2.875 px, 128 FU wide, pixel origin at X = 0, Y = 129. Gestures are in FU, while Touch::hitButton works in pixels.

Build, flash e aggiornamentiBuild, flash and updates

PlatformIO con espressif32@8.0.0 e Arduino 4.30312.261024. La compilazione va eseguita da dentro sparky-amoled/.PlatformIO with espressif32@8.0.0 and Arduino 4.30312.261024. The build must run from inside sparky-amoled/.

pio run -e sparky_amoled
pio run -e sparky_amoled -t upload --upload-port COM10

La seriale è USB CDC a 115200 baud. extra_script.py genera src/BuildVersion.h con l'hash Git e incina src/web/assets/ in src/web/WebAssets.h: i file generati non vanno modificati a mano.The serial port is USB CDC at 115200 baud. extra_script.py generates src/BuildVersion.h with the Git hash and bakes src/web/assets/ into src/web/WebAssets.h: generated files must not be edited by hand.

Al primo avvio serve una SD FAT32: il firmware crea /sparky e le cartelle necessarie. I salvataggi del Game Boy stanno in LittleFS (/sparky/gbc/<titolo>.sav), con /sparky/saves come percorso legacy accettato.First boot needs a FAT32 SD card: the firmware creates /sparky and the needed folders. Game Boy saves live in LittleFS (/sparky/gbc/<title>.sav), with /sparky/saves accepted as the legacy path.

L'emulatore desktop è una build separata sotto emulator/ e compila gli alberi sorgente reali contro stub hardware: senza make e g++ non è stato ancora prodotto un build completo.The desktop emulator is a separate build under emulator/ and compiles the real source trees against hardware stubs: without make and g++ no complete build has been produced yet.

ElementoItemValoreValue
PiattaformaPlatformespressif32@8.0.0
FrameworkFrameworkframework-arduinoespressif32@4.30312.261024
ToolchainToolchaintoolchain-xtensa-esp-elf@14.2.0+20260121
BoardBoardwaveshare_esp32_s3_touch_amoled_18
LibrerieLibrariesArduinoJson 7.4 · PNGdec 1.1.6 · JPEGDEC 1.8.4 · NimBLE 2.5.2 · WebSockets 2.7.3
Flash / PSRAMFlash / PSRAM16 MB / 8 MB OPI
PartizioniPartitionsun solo slot applicativo da 6 MBa single 6 MB application slot
Nessun OTA.No OTA. La tabella delle partizioni ha un solo slot app0: l'aggiornamento richiede una ripartizione con due slot da 3 MB e un firmware sotto i 3 MB (oggi è ~2.9 MB) oppure un modulo da 32 MB. partitions_ota.csv è solo un esempio. Sul campo le operazioni remote si limitano a /api/reboot e /api/fs/upload: per aggiornare il firmware serve ricompilare e riflashare via USB. The partition table has a single app0 slot: updating requires repartitioning with two 3 MB slots and a firmware below 3 MB (today it is ~2.9 MB), or a 32 MB module. partitions_ota.csv is only an example. In the field, remote operations are limited to /api/reboot and /api/fs/upload: updating the firmware means recompiling and reflashing over USB.

L'API HTTPThe HTTP API

115 route registrate. Le risposte sono JSON, con Connection: close, e il server accetta un solo client alla volta. Gli errori usano {"ok":false,"error":"…"}.115 registered routes. Responses are JSON, with Connection: close, and the server accepts one client at a time. Errors use {"ok":false,"error":"…"}.

GruppoGroupRoute principaliMain routes
DispositivoDevice/api/info · /api/version · /api/serial · /api/pmu · /api/perf · /api/stats · /api/diag · /api/power · POST /api/reboot
ReteNetwork/api/net · /api/net/retry · /api/net/forget · /api/wifi/scan · /api/wifi/saved · /api/wifi/connect · /api/wifi/save · /api/wifi/forget · /api/wifi/use
AppAppsGET /api/app · GET /api/apps · GET|POST /api/app/<id> — 13 id: launcher, music, gallery, gbc, news, stream, info, settings, assistant, diag, bruce, ble, wifi
Schermo e inputScreen and inputGET /api/screen.bmp (368×448, 494.646 B) · GET /api/screen.vlq?step=4 (92×112, ~31 KB) · POST /api/input/tap (coordinate in FU) · POST /api/input/button
ConfigurazioneConfigurationGET /api/config · POST /api/config (410, disabilitato) · GET|POST /api/settings · POST /api/levels
NotificheNotificationsGET|POST /api/notify · DELETE /api/notify · POST /api/notify/cancel · POST /api/notify/respond
MediaMedia/api/music/* · /api/audio/* · /api/photos · /api/photos/list · /api/photos/show
Voce e assistenteVoice and assistant/api/assistant/* · /api/chat/* · /api/voice/tts · /api/voice/stt · /api/voice/status
StreamingStreamingGET /api/stream · POST /api/stream/play|open|close|audio · push su :8080/mjpe (multipart) e :8080/pcm
File e BLEFiles and BLE/api/fs/list|download|upload|delete|mkdir|rename · /api/ble · POST /api/ble/toggle · /api/ble/scan · /api/ble/inspect
VisoFace/api/face/exprs (56 espressioni) · /api/face/live · /api/face/state · /api/face/graph · /api/face/acts · /api/face/expr?name= · /api/face/act?name=

Rete, BLE e orologioNetwork, BLE and clock

Net è una macchina a stati non bloccante: ogni passaggio è un tentativo, nessuno è definitivo.Net is a non-blocking state machine: every transition is an attempt, none is final.

Stati. IDLE, SCANNING, CONNECTING, CONNECTED, FAILED: dopo 8 tentativi falliti la radio resta accesa e un nuovo tentativo viene schedulato, quindi FAILED non è terminale.States. IDLE, SCANNING, CONNECTING, CONNECTED, FAILED: after 8 failed attempts the radio stays on and another attempt is scheduled, so FAILED is not terminal.

Ordine e ritenta. Prima la rete wifiLast, poi le altre nell'ordine del file: 2 tentativi per rete con timeout di 8 secondi, lista che ricomincia indefinitamente. Il backoff è 1.5, 3, 6, 12, 30, 60, 120 e 300 secondi e riparte da 1.5 cambiando rete; SETTLE_MS=1500 lascia assestare lo stack DHCP.Order and retry. The wifiLast network first, then the others in file order: 2 attempts per network with an 8-second timeout, the list wrapping indefinitely. The backoff is 1.5, 3, 6, 12, 30, 60, 120 and 300 seconds and restarts at 1.5 when switching network; SETTLE_MS=1500 lets the DHCP stack settle.

Radio spenta. Il timer parte dallo spegnimento dello schermo, non dall'avvio: la radio spenta restituisce ~24 KB di heap, ma il dispositivo non è raggiungibile e può essere riattivato solo dal vetro o dalla console seriale.Radio off. The timer starts from screen-off, not boot: turning the radio off returns ~24 KB of heap, but the device is unreachable and can only be brought back from the glass or the serial console.

BLE. Disattivato per impostazione predefinita, GATT 0000FFE0/FFE1. L'avvio a runtime richiede 90 KB liberi e un blocco contiguo di 32 KB; con bleEnabled attivo al boot il dispositivo parte in modalità BLE-only e il web resta disattivato.BLE. Off by default, GATT 0000FFE0/FFE1. Runtime start needs 90 KB free and a contiguous 32 KB block; with bleEnabled set at boot the device starts in BLE-only mode and the web stays disabled.

Orologio. Con la rete connessa il firmware imposta TZ=CET-1CEST,M3.5.0,M10.5.0/3 e chiama SNTP su tre server; l'orologio viene copiato nel RTC solo quando l'anno è almeno 2024, e configTime() viene ritentato ogni 30 secondi finché il 1970 non sparisce.Clock. Once the network is up the firmware sets TZ=CET-1CEST,M3.5.0,M10.5.0/3 and calls SNTP on three servers; the clock is copied to the RTC only when the year is at least 2024, and configTime() is retried every 30 seconds until 1970 disappears.

PuntoPointValoreValue
Web e APIWeb and APIporta 80
Push videoVideo push:8080/mjpe
Push audioAudio push:8080/pcm (dibattito: vedi contraddizioni)(disputed: see contradictions)
Streaming in pullPull streamingGET /api/stream
Decodifica videoVideo decode~30–40 ms a 368×448, tetto 10 fps
Soglie BLE runtimeRuntime BLE thresholds90 KB liberi + 32 KB contigui
Budget BLEBLE budget63 + 46 + 21 = 131 KB su 127 KB interni

Sviluppo e verificaDevelopment and verification

Le convenzioni e i limiti del server web sono parte del contratto: violate, congelano il dispositivo o troncano le risposte.The conventions and the web-server limits are part of the contract: break them and the device freezes or truncates responses.

ConvenzioniConventions

  • Una classe per file; classi in PascalCase, metodi camelCase, costanti UPPER_SNAKE, membri snake_case_.One class per file; classes in PascalCase, methods camelCase, constants UPPER_SNAKE, members snake_case_.
  • Costanti di layout in UiTheme.h, pin in Config.h, tempi in costanti con nome.Layout constants in UiTheme.h, pins in Config.h, timings in named constants.
  • Il font del vetro è ASCII 5×7: fuori da 0x20–0x7E diventa ?, e il troncamento usa .., mai ….The glass font is ASCII 5×7: outside 0x20–0x7E it becomes ?, and elision uses .., never ….
  • Le allocazioni permanenti vanno misurate e riportate nella documentazione di architettura.Permanent allocations must be measured and listed in the architecture documentation.

I limiti del serverThe server limits

  • client.write() tronca i corpi oltre il buffer TCP di lwIP (~5 KB): usare sendBody() a chunk da 1 KB o BodySink da ~0.5 KB.client.write() truncates bodies beyond the lwIP TCP buffer (~5 KB): use sendBody() in 1 KB chunks or the ~0.5 KB BodySink.
  • Un documento ArduinoJson grande non va bene: 56 espressioni in un colpo solo hanno portato la heap libera da 59 KB a 6 KB.One large ArduinoJson document does not work: 56 expressions at once took the free heap from 59 KB down to 6 KB.
  • portENTER_CRITICAL non deve coprire I/O lento: solo copie brevi come le metriche.portENTER_CRITICAL must not cover slow I/O: only short copies such as metrics.
  • La rinomina FAT può fallire: scrivere <file>.tmp, provare la rinomina, poi copiare sopra la destinazione.The FAT rename may fail: write <file>.tmp, try the rename, then copy over the destination.

La sequenza di verificaThe verification sequence

  • Compilare, poi boot_test.py 3 10: si cerca robot ready e l'assenza di panic|Guru|abort|assert.Build, then boot_test.py 3 10: look for robot ready and no panic|Guru|abort|assert.
  • Leggere /api/perf, /api/app/<id> e /api/screen.bmp; api_sweep.py deve finire con zero errori.Read /api/perf, /api/app/<id> and /api/screen.bmp; api_sweep.py must end with zero errors.
  • Catturare con tools/snap.ps1 o tools/shot.py e riportare le misure nel commit.Capture with tools/snap.ps1 or tools/shot.py and record the measurements in the commit.
  • Riferimenti: faccia 20–24 fps, launcher 24, galleria 30, player 22, player in riproduzione 13–15.Baselines: face 20–24 fps, launcher 24, gallery 30, player 22, player playing 13–15.

Limiti noti e lavoro apertoKnown limits and open work

I limiti non sono incidenti: sono il prezzo della memoria interna. Sono annotati con un identificatore per poterli seguire.The limits are not accidents: they are the price of internal memory. They carry an identifier so they can be tracked.

P8 · Heap e TLSP8 · Heap and TLS

Ridurre i ~40 KB di Wi-Fi/lwIP per far convivere TLS e decoder: oggi il decoder residenti impedisce la coesistenza, e l'assistente lo libera interrupting la riproduzione.Shrink the ~40 KB of Wi-Fi/lwIP so TLS and the decoder can coexist: today the resident decoder prevents coexistence, and the assistant releases it, interrupting playback.

P9 · Un solo mutex per la SDP9 · One mutex for the SD

SD_MMC è condiviso dalla task musicale, dal loop, dalla galleria e dalla scrittura della configurazione: solo quest'ultima ha un lock. Una invalidazione dell'handle della copertina può far restituire dimensione zero e fermare la riproduzione.SD_MMC is shared by the music task, the loop, the gallery, and the configuration writer: only the writer has a lock. A cover-handle invalidation can make the size read zero and stop playback.

P6 · Build dell'emulatoreP6 · Host emulator build

L'integrazione con gli alberi sorgente reali esiste, ma senza make e g++ non è mai stata eseguita: l'emulatore non va considerato utilizzabile finché non compila.The integration with the real source trees exists, but without make and g++ it has never been run: the emulator must not be considered usable until it builds.

P10 e P11 · BLEP10 and P11 · BLE

La guardia di heap e il default disattivato esistono, ma il BLE a runtime e il BLE-only all'avvio restano due percorsi separati; resta da verificare a mano lo spegnimento della radio BLE dal vetro.The heap guard and the off-by-default behaviour exist, but runtime BLE and boot-time BLE-only remain separate paths; manually verifying BLE radio-off from the glass is still open.

Streaming e assistenteStreaming and assistant

Il parser accetta solo multipart/x-mixed-replace: il polling di una webcam che restituisce un singolo JPEG non è implementato. Il ciclo dell'assistente resta vicino ai 25 secondi e va rimisurato.The parser accepts only multipart/x-mixed-replace: polling a webcam that returns a single JPEG is not implemented. The assistant cycle stays around 25 seconds and needs to be remeasured.

Notifiche e memoriaNotifications and memory

La coda delle notifiche tiene 4 messaggi, 512 caratteri e WAV senza transcodifica; si perde al riavvio. Lo stack da 16 KB del loop costa 8 KB di heap: la heap libera passa da ~78 KB a ~70 KB.The notification queue holds 4 messages, 512 characters and WAVs with no transcoding; it is lost on reboot. The 16 KB loop stack costs 8 KB of heap: free heap drops from ~78 KB to ~70 KB.

Contraddizioni e affermazioni obsoleteContradictions and stale statements

Dove i documenti e il codice non concordano, il codice vince. Questo elenco è la parte che va aggiornata nei file di docs/.Where the documents and the code disagree, the code wins. This list is the part that needs updating in the files under docs/.

TemaTopicNei documentiIn the documentsVerifica sul codiceCheck against the code
Soglie di inclinazioneTilt thresholds 8° e 18 dps8° and 18 dps Config.h: TILT_DELTA_DEG 15 e GYRO_SHAKE_THR 40.Config.h: TILT_DELTA_DEG 15 and GYRO_SHAKE_THR 40.
Tocco a schermo spentoTouch on a dark screen «a schermo spento il tocco non sveglia»“on a dark screen the touch does not wake the device” Il tocco tenuto ≥500 ms sveglia e il rilascio viene consumato; sotto quella soglia non succede nulla.A touch held ≥500 ms wakes the device and its release is consumed; below that threshold nothing happens.
MicrofoniMicrophones Il prompt dell'assistente parla di «due microfoni»The assistant prompt mentions “two microphones” L'hardware ha una sola capsula mono: il prompt è un testo superato.The hardware has a single mono capsule: the prompt is stale text.
Parola di attivazioneWake word La wake word è descritta come disponibileThe wake word is described as available WAKE_WORD=1 ma WAKE_WORD_MODEL=0: senza il modello nella partizione model non può partire.WAKE_WORD=1 but WAKE_WORD_MODEL=0: without the model in the model partition it cannot start.
Stack del loopLoop stack Nella cronologia: 64 KB, poi 16 KBIn the history: 64 KB, then 16 KB platformio.ini dichiara 65536, ma main.cpp forza getArduinoLoopTaskStackSize() a 16384: il valore del file di configurazione è inerte.platformio.ini declares 65536, but main.cpp forces getArduinoLoopTaskStackSize() to 16384: the configuration value is inert.
Storage del webWeb storage «LittleFS 6 MB per il web»“6 MB LittleFS for the web” La web UI è incassata in PROGMEM in WebAssets.h; su LittleFS finiscono i file caricati a runtime.The web UI is baked into PROGMEM in WebAssets.h; LittleFS holds the files uploaded at runtime.
Streaming a JPEG singoloSingle-JPEG streaming L'architettura lo descrive come supportatoThe architecture document describes it as supported Il parser accetta solo multipart: il polling di una webcam a JPEG singolo non è implementato.The parser accepts multipart only: single-JPEG webcam polling is not implemented.
Stack del decoderDecoder stack 22 KB nell'architettura, 8 KB negli altri documenti22 KB in the architecture document, 8 KB elsewhere Vige MUSIC_STACK = 8192: i 22 KB sono superati.MUSIC_STACK = 8192 is in force: the 22 KB figure is stale.
Dimensione del fontFont size 5×5 nel documento sulla lingua, 5×7 altrove5×5 in the language document, 5×7 elsewhere Il font del vetro è 5×7, come nel disegno e nei palloncini di voce.The glass font is 5×7, as in the drawing and speech-balloon documentation.
Stati della reteNetwork states «4 stati» nel documento sui limiti“4 states” in the limits document Sono cinque: IDLE, SCANNING, CONNECTING, CONNECTED, FAILED.There are five: IDLE, SCANNING, CONNECTING, CONNECTED, FAILED.
Porta dell'audio pushAudio push port :8080/pcm nell'API, :8081 nella sezione porte:8080/pcm in the API, :8081 in the ports section Da risolvere sul codice: le due assegnazioni non possono essere vere insieme.To be resolved in the code: the two assignments cannot both be true.
Route non documentateUndocumented routes Assenti dalla documentazione HTTPMissing from the HTTP documentation /api/version e /api/notify/respond sono registrate nel codice./api/version and /api/notify/respond are registered in the code.
Strumenti citatiCited tools Rimandano a tools/facecheck/They point to tools/facecheck/ Quel percorso non esiste nel repository: il riferimento va corretto o tolto.That path does not exist in the repository: the reference must be fixed or dropped.
Metriche di buildBuild metrics Due coppie diverse per la build del 20 novembre 2026Two different pairs for the 20 November 2026 build Non sono la stessa istantanea: una delle due è da correggere.They are not the same snapshot: one of the two must be corrected.

I tre handoff storiciThe three historical handoffs

Documentano il percorso, non lo stato. Ognuno porta il timbro «superato» e un elenco di ciò che è cambiato.They document the journey, not the state. Each carries a “superseded” stamp and a list of what changed.

Cosa resta valido dei tre handoff:What remains valid in the three handoffs: la causa radice del panic d'avvio, la lezione sulle sezioni critiche, il modello shell + overlay e la lista dei difetti visivi già corretti. Tutto il resto è stato superato il 20 novembre 2026. the root cause of the boot panic, the lesson about critical sections, the shell + overlay model, and the list of visual defects already fixed. Everything else was superseded on 20 November 2026.

Il sito e il suo standardThe site and its standard

Anche il sito è un deliverable del progetto e segue lo standard di sito v2.0.0: HTML completo, un solo CSS, nessun blocco sul contenuto, dati strutturati e controllo automatico in CI.The site is a project deliverable too and follows site standard v2.0.0: complete HTML, a single CSS file, no blocking on the content, structured data, and an automated check in CI.

Documenti di riferimentoReference documents

  • docs/SITE-STANDARD.md — lo standard applicato (copia del template v2.0.0)the standard in force (copy of the v2.0.0 template)
  • docs/SITE-PROFILE.md — dati del progetto, gap analysis, deroghe, stato di pubblicazioneproject data, gap analysis, derogations, publication status
  • docs/SITE-UPDATE.md — promemoria operativo per l'aggiornamentooperational reminder for updates
  • SITE_GOVERNANCE.md — governance del sito nel repositorysite governance in the repository
  • site.config.json — dati macchina: baseUrl, lingue, versione standardmachine data: baseUrl, languages, standard version

ComandiCommands

py tools/check_site.py        # controllo: 0 errori, 0 avvisi
pwsh tools/site_update.ps1    # contatori con i valori reali nell'HTML

Il workflow .github/workflows/pages.yml esegue il controllo a ogni push su main e a ogni pull request; il deploy resta subordinato all'autorizzazione di pubblicazione.The .github/workflows/pages.yml workflow runs the check on every push to main and on every pull request; the deploy stays subject to publication authorisation.

Deroga attiva: D-001 — un solo URL per lingua con toggle client-side, quindi niente hreflang né voce en/ in sitemap e llms.txt.Active derogation: D-001 — one URL per language with a client-side toggle, so no hreflang and no en/ entry in the sitemap and llms.txt.

Da dove proseguire:Where to continue from: l'architettura e il flusso sono in tech.html e l'elenco delle route in api.html ; il testo completo è nella cartella docs/ del repository. the architecture and the flow are in tech.html and the route list in api.html ; the complete text lives in the repository's docs/ folder.