Skip to content

Commit a0d795d

Browse files
committed
update README
1 parent 1122827 commit a0d795d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ Python library for EPSON thermal printers
33

44
A python library to control thermal printers based on the ESC/POS language as defined by Epson.
55

6+
### Installation
7+
Clone the project
8+
```
9+
git clone https://github.com/benoitguigal/python-epson-printer.git
10+
```
11+
Install dependencies
12+
```
13+
sudo python setup.py install
14+
```
15+
Connect your EPSON thermal printer via a USB port and run
16+
```
17+
lsusb
18+
Bus 001 Device 005: ID 04b8:0e03 Seiko Epson Corp.
19+
```
20+
Write down the vendor_id and the product_id and pass them as arguments to the test page
21+
```
22+
sudo python epson_printer/test_page.py -v 0x04b8 -p 0x0e03
23+
```
24+
25+
626
### Devices
727
The library should work with all ESC/POS-based Epson printers but it has only been tested with a TM-T20.
828

@@ -25,6 +45,7 @@ The library should work with all ESC/POS-based Epson printers but it has only be
2545
* full paper cut
2646

2747

48+
2849
### Credits
2950
* [python-escpos code on google](https://code.google.com/p/python-escpos/)
3051
* [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/)

0 commit comments

Comments
 (0)