link to escpos-printer-db
This commit is contained in:
parent
efff2cbe43
commit
e904500312
|
@ -9,13 +9,15 @@ be aware that the API will still change until v3.0 is released.
|
|||
|
||||
changes
|
||||
^^^^^^^
|
||||
- feature: add "capabilities" which are shared with escpos-php
|
||||
- feature: add "capabilities" which are shared with escpos-php, capabilities are stored in
|
||||
`escpos-printer-db <https://github.com/receipt-print-hq/escpos-printer-db>`_
|
||||
- feature: the driver tries now to guess the appropriate codepage and sets it automatically (called "magic encode")
|
||||
- as an alternative you can force the codepage with the old API
|
||||
- updated and improved documentation
|
||||
- changed constructor of main class due to introduction of capablities
|
||||
- changed interface of method `blocktext`, changed behavior of multiple methods, for details refer to the documentation
|
||||
on `python-escpos.readthedocs.io <https://python-escpos.readthedocs.io>`_
|
||||
- add support for custom cash drawer sequence
|
||||
|
||||
contributors
|
||||
^^^^^^^^^^^^
|
||||
|
|
11
README.rst
11
README.rst
|
@ -37,6 +37,11 @@ Text can be aligned/justified and fonts can be changed by size, type and weight.
|
|||
Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset
|
||||
and similar functions.
|
||||
|
||||
Since supported commands differ from printer to printer the software tries to automatically apply the right
|
||||
settings for the printer that you set. These settings are handled by
|
||||
`escpos-printer-db <https://github.com/receipt-print-hq/escpos-printer-db>`_ which is also used in
|
||||
`escpos-php <https://github.com/mike42/escpos-php>`_.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
|
@ -56,11 +61,11 @@ The basic usage is:
|
|||
|
||||
from escpos.printer import Usb
|
||||
|
||||
""" Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """
|
||||
p = Usb(0x04b8,0x0202,0)
|
||||
""" Seiko Epson Corp. Receipt Printer (EPSON TM-T88III) """
|
||||
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
|
||||
p.text("Hello World\n")
|
||||
p.image("logo.gif")
|
||||
p.barcode('1324354657687','EAN13',64,2,'','')
|
||||
p.barcode('1324354657687', 'EAN13', 64, 2, '', '')
|
||||
p.cut()
|
||||
|
||||
The full project-documentation is available on `Read the Docs <https://python-escpos.readthedocs.io>`_.
|
||||
|
|
Loading…
Reference in New Issue