15 lines
345 B
Python
15 lines
345 B
Python
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
from escpos.printer import Usb
|
|
|
|
|
|
# Adapt to your needs
|
|
p = Usb(0x0416, 0x5011, profile='POS-5890')
|
|
|
|
# Some software barcodes
|
|
p.soft_barcode('code128', 'Hello')
|
|
p.soft_barcode('code39', '123456')
|