from escpos.printer import Usb
p = Usb(0x0416, 0x5011, 0, 0x81, 0x03)
p.text("=================\n")
#p.image("./barcode/barcode.png")
#p.barcode('1324354657687', 'EAN13', 64, 2, '', './fonts/code128.ttf')
### barcode(code, bc, width, height, pos, font)
p.barcode("{B012ABCDabcd", "CODE128", function_type="B")
# Print QR Code
#p.qr("You can readme from your smartphone")
#p.cut()
#print(p.control('LF', 16))
#print(p.device)
I tried to print code128 and ean barcodes. I only got texts like;
@1324354657687
@I{B012ABCDabcd
. I've tried to add font file (which was not useful), to change code type and some other unuseful things. I researched the documents and manuals from internet. I could print text and image.
I use this https://github.com/escpos/python-escpos
The printer I use: Zijiang thermal ZJ-5890
Any idea why I get only letters but not barcode?