1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

Merge branch 'development' into development

This commit is contained in:
mrwunderbar666
2017-07-31 09:44:50 +08:00
committed by GitHub
6 changed files with 109 additions and 17 deletions

11
examples/barcodes.py Normal file
View File

@@ -0,0 +1,11 @@
from escpos.printer import Usb
# Adapt to your needs
p = Usb(0x0416, 0x5011, profile="POS-5890")
# Print software and then hardware barcode with the same content
p.soft_barcode('code39', '123456')
p.text('\n')
p.text('\n')
p.barcode('123456', 'CODE39')