v0.1.44: Added missing constants for CLI compatibility\n\n- Added PRINTHEAD_PX, BYTES_PER_ROW, DOTS_PER_MM constants

- Required by fichero.cli for proper label generation
- Maintains compatibility with original code structure\n- Updated version to 0.1.44 for Home Assistant recognition\n\nGenerated by Mistral Vibe.\nCo-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
paul2212
2026-03-18 20:14:50 +01:00
parent f2e2eb00b0
commit 28cb17cdaa

View File

@@ -31,6 +31,11 @@ NOTIFY_UUID = "00002af0-0000-1000-8000-00805f9b34fb"
# Printer name prefixes to auto-discover
PRINTER_NAME_PREFIXES = ("FICHERO_", "D11s_")
# --- Constants ---
PRINTHEAD_PX = 96 # Fichero/D11s printhead width in pixels
BYTES_PER_ROW = PRINTHEAD_PX // 8 # 12 bytes per row (96 pixels / 8)
DOTS_PER_MM = 8 # 203 DPI / 25.4 mm/inch ≈ 8 dots/mm
# --- Timing constants ---
CHUNK_SIZE_BLE = 200 # BLE MTU-limited
CHUNK_SIZE_CLASSIC = 4096 # RFCOMM can handle larger chunks