2018-05-16 00:02:35 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-05-15 23:23:04 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
from __future__ import division
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-05-16 18:55:30 +00:00
|
|
|
from escpos.printer import Usb
|
|
|
|
|
2017-05-22 18:25:51 +00:00
|
|
|
|
2017-05-16 18:55:30 +00:00
|
|
|
# Adapt to your needs
|
2018-05-15 23:09:48 +00:00
|
|
|
p = Usb(0x0416, 0x5011, profile='POS-5890')
|
2017-05-16 18:55:30 +00:00
|
|
|
|
|
|
|
# Some software barcodes
|
|
|
|
p.soft_barcode('code128', 'Hello')
|
2017-05-22 18:25:51 +00:00
|
|
|
p.soft_barcode('code39', '123456')
|