2017-07-27 20:45:51 +00:00
|
|
|
from escpos.printer import Usb
|
|
|
|
|
|
|
|
|
|
|
|
# Adapt to your needs
|
2018-05-15 23:09:48 +00:00
|
|
|
p = Usb(0x0416, 0x5011, profile='POS-5890')
|
2017-07-27 20:45:51 +00:00
|
|
|
|
|
|
|
# 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')
|