Merge branch 'development' into development

This commit is contained in:
Patrick Kanzler 2017-07-27 22:46:11 +02:00 committed by GitHub
commit e4801613ad

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')