mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
Update barcode examples and docs
This commit is contained in:
@@ -2,10 +2,10 @@ from escpos.printer import Usb
|
||||
|
||||
|
||||
# Adapt to your needs
|
||||
p = Usb(0x0416, 0x5011, profile="POS-5890")
|
||||
p = Usb(0x0416, 0x5011, profile="TM-T88II")
|
||||
|
||||
# Print software and then hardware barcode with the same content
|
||||
p.soft_barcode("code39", "123456")
|
||||
p.barcode("123456", "CODE39", width=2, force_software=True)
|
||||
p.text("\n")
|
||||
p.text("\n")
|
||||
p.barcode("123456", "CODE39")
|
||||
|
@@ -5,5 +5,5 @@ from escpos.printer import Usb
|
||||
p = Usb(0x0416, 0x5011, profile="POS-5890")
|
||||
|
||||
# Some software barcodes
|
||||
p.soft_barcode("code128", "Hello")
|
||||
p.soft_barcode("code39", "1234")
|
||||
p.barcode("Hello", "code128", width=2, force_software="bitImageRaster")
|
||||
p.barcode("1234", "code39", width=2, force_software=True)
|
||||
|
Reference in New Issue
Block a user