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:
22
crates/client-esp32/src/config.rs
Normal file
22
crates/client-esp32/src/config.rs
Normal 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);
|
||||
Reference in New Issue
Block a user