add all crates: domain, protocol, application, client, adapters, ESP32 firmware

Server: domain (entities, value objects, ports), protocol (postcard wire types),
application (config service, data projection), adapters (config-memory, tcp-server),
bootstrap (composition root with fake data).

Client: client-domain (layout engine, render tree, HAL ports),
client-application (message handling, repaint commands),
adapters (tcp-client, display-terminal), client-desktop (end-to-end working).

ESP32: client-esp32 firmware with ILI9341 display over SPI, WiFi networking.
Display test verified on hardware — landscape orientation, text rendering works.

60 workspace tests, all passing.
This commit is contained in:
2026-06-18 21:43:59 +02:00
parent 6ad76b98a2
commit 557cceb498
83 changed files with 5844 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
use std::time::Duration;
use esp_idf_hal::units::Hertz;
use client_domain::BoundingBox;
pub const SCREEN_WIDTH: u16 = 320;
pub const SCREEN_HEIGHT: u16 = 240;
pub const SCREEN: BoundingBox = BoundingBox {
x: 0,
y: 0,
width: SCREEN_WIDTH,
height: SCREEN_HEIGHT,
};
pub const SPI_BAUDRATE: Hertz = Hertz(26_000_000);
pub const SPI_BUFFER_SIZE: usize = 512;
pub const NET_THREAD_STACK_SIZE: usize = 8192;
pub const NET_READ_TIMEOUT: Duration = Duration::from_millis(10);
pub const NET_POLL_INTERVAL: Duration = Duration::from_millis(50);
pub const NET_RECONNECT_DELAY: Duration = Duration::from_secs(2);
pub const RENDER_POLL_INTERVAL: Duration = Duration::from_millis(100);