8 Commits
Author SHA1 Message Date
Gracious 90137dd111 Add model table, PrinterError, and port upstream PRs #28/#12
Library changes on top of upstream 35c41a7:

- models.py: MODELS table (max width / density / needs_print_clear per
  model) and prepare_print(), replacing the duplicated width/density
  logic in the CLI. Adds d101 (192px head, tested on 12mm tape).
- _transceive raises PrinterError instead of returning None (callers
  used to crash with AttributeError on a silent printer).
- PR #28: send ALLOW_PRINT_CLEAR / SET_QUANTITY for D-series models
  (labels taller than ~210px failed on D11 without them) and pause 1ms
  between line packets.
- PR #12: replace the fixed sleep after END_PAGE_PRINT with
  get_print_status() polling (30s deadline, fallback for firmwares that
  do not answer). get_print_status returns PrintStatus(finished,
  progress, feed_progress, error).
- set_dimension parameter names match their use.

Verified on a D101 over Bluetooth.
2026-09-21 08:02:58 +01:00
blieppandGitHub 35c41a705c Bugfix: --addr assert checking (#51) 2026-03-16 00:27:54 +03:00
14237a9d05 Added B18 support (#6)
* Adding B18 support

* B18 work

* Removed some debugging print

* Update readme, remove extra example image

* Add extra printer models & density check

---------

Co-authored-by: AndBondStyle <[email protected]>
2024-01-20 02:05:42 +03:00
AndBondStyle 2199e65588 Add --verbose flag 2023-12-06 13:48:24 +03:00
AndBondStyle 0f744cd2c5 Add rotation support, update readme 2023-11-01 06:08:59 +03:00
AndBondStyle e75ec6e330 Test bluetooth connection, update readme 2023-10-30 02:24:39 +03:00
AndBondStyle 3d48cb4a7b Update 2023-10-30 02:03:02 +03:00
kjy00302 8dbf94d9e0 Initial commit 2023-03-16 19:46:09 +09:00