v0.1.46: Added all missing constants for complete CLI support\n\n- Added DELAY_COMMAND_GAP, DELAY_RASTER_SETTLE, DELAY_AFTER_FEED\n- Added PAPER_GAP, PAPER_BLACK_MARK, PAPER_CONTINUOUS\n- All constants now match original code\n- Updated version to 0.1.46 for Home Assistant recognition\n\nGenerated by Mistral Vibe.\nCo-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -36,6 +36,15 @@ 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
|
||||
DELAY_AFTER_DENSITY = 0.10 # printer needs time to apply density setting
|
||||
DELAY_COMMAND_GAP = 0.05 # minimum gap between sequential commands
|
||||
DELAY_RASTER_SETTLE = 0.50 # wait for printhead after raster transfer
|
||||
DELAY_AFTER_FEED = 0.30 # wait after form feed before stop command
|
||||
DELAY_NOTIFY_EXTRA = 0.05 # extra wait for trailing BLE notification fragments
|
||||
|
||||
# Paper types
|
||||
PAPER_GAP = 0x00
|
||||
PAPER_BLACK_MARK = 0x01
|
||||
PAPER_CONTINUOUS = 0x02
|
||||
|
||||
# --- Timing constants ---
|
||||
CHUNK_SIZE_BLE = 200 # BLE MTU-limited
|
||||
|
||||
Reference in New Issue
Block a user