DOC fix demo-code in README.rst

fixes #159
This commit is contained in:
Patrick Kanzler 2016-08-11 11:25:40 +02:00 committed by GitHub
parent a38c124bb1
commit 996b3fd332
1 changed files with 6 additions and 6 deletions

View File

@ -54,14 +54,14 @@ The basic usage is:
.. code:: python
from escpos import *
from escpos.printer import Usb
""" Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """
Epson = escpos.Escpos(0x04b8,0x0202,0)
Epson.text("Hello World\n")
Epson.image("logo.gif")
Epson.barcode('1324354657687','EAN13',64,2,'','')
Epson.cut()
p = Usb(0x04b8,0x0202,0)
p.text("Hello World\n")
p.image("logo.gif")
p.barcode('1324354657687','EAN13',64,2,'','')
p.cut()
The full project-documentation is available on `Read the Docs <https://python-escpos.readthedocs.io>`_.