From a0d795dc509152390db584dd55eb32932c42f849 Mon Sep 17 00:00:00 2001 From: benoit Date: Tue, 10 Jun 2014 14:07:11 +0200 Subject: [PATCH] update README --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 087a3fc..8d2458d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,26 @@ Python library for EPSON thermal printers A python library to control thermal printers based on the ESC/POS language as defined by Epson. +### Installation +Clone the project +``` +git clone https://github.com/benoitguigal/python-epson-printer.git +``` +Install dependencies +``` +sudo python setup.py install +``` +Connect your EPSON thermal printer via a USB port and run +``` +lsusb +Bus 001 Device 005: ID 04b8:0e03 Seiko Epson Corp. +``` +Write down the vendor_id and the product_id and pass them as arguments to the test page +``` +sudo python epson_printer/test_page.py -v 0x04b8 -p 0x0e03 +``` + + ### Devices The library should work with all ESC/POS-based Epson printers but it has only been tested with a TM-T20. @@ -25,6 +45,7 @@ The library should work with all ESC/POS-based Epson printers but it has only be * full paper cut + ### Credits * [python-escpos code on google](https://code.google.com/p/python-escpos/) * [sending-a-bit-image-to-an-epson-tm-t88iii-receipt-printer-using-c-and-escpos blog post](http://nicholas.piasecki.name/blog/2009/12/sending-a-bit-image-to-an-epson-tm-t88iii-receipt-printer-using-c-and-escpos/)