18 lines
431 B
Python
18 lines
431 B
Python
# -*- coding: utf-8 -*-
|
|
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')
|
|
|
|
# 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')
|