Merge remote-tracking branch 'brianredbeard/ean-example-fix' into 351-ean-example-fix

This commit is contained in:
Patrick Kanzler 2023-07-28 18:10:31 +02:00
commit 09c340a6ad
3 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ The basic usage is:
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III") p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
p.text("Hello World\n") p.text("Hello World\n")
p.image("logo.gif") p.image("logo.gif")
p.barcode('1324354657687', 'EAN13', 64, 2, '', '') p.barcode('4006381333931', 'EAN13', 64, 2, '', '')
p.cut() p.cut()
@ -62,7 +62,7 @@ Another example based on the Network printer class:
kitchen = Network("192.168.1.100") #Printer IP Address kitchen = Network("192.168.1.100") #Printer IP Address
kitchen.text("Hello World\n") kitchen.text("Hello World\n")
kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '') kitchen.barcode('4006381333931', 'EAN13', 64, 2, '', '')
kitchen.cut() kitchen.cut()
Another example based on the Serial printer class: Another example based on the Serial printer class:

View File

@ -121,7 +121,7 @@ on a USB interface.
# Print QR Code # Print QR Code
p.qr("You can readme from your smartphone") p.qr("You can readme from your smartphone")
# Print barcode # Print barcode
p.barcode('1324354657687','EAN13',64,2,'','') p.barcode('4006381333931','EAN13',64,2,'','')
# Cut paper # Cut paper
p.cut() p.cut()

View File

@ -52,7 +52,7 @@ DEMO_FUNCTIONS = {
"barcodes_a": [ "barcodes_a": [
{"bc": "UPC-A", "code": "13243546576"}, {"bc": "UPC-A", "code": "13243546576"},
{"bc": "UPC-E", "code": "132435"}, {"bc": "UPC-E", "code": "132435"},
{"bc": "EAN13", "code": "1324354657687"}, {"bc": "EAN13", "code": "4006381333931"},
{"bc": "EAN8", "code": "1324354"}, {"bc": "EAN8", "code": "1324354"},
{"bc": "CODE39", "code": "TEST"}, {"bc": "CODE39", "code": "TEST"},
{"bc": "ITF", "code": "55867492279103"}, {"bc": "ITF", "code": "55867492279103"},
@ -61,13 +61,13 @@ DEMO_FUNCTIONS = {
"barcodes_b": [ "barcodes_b": [
{"bc": "UPC-A", "code": "13243546576", "function_type": "B"}, {"bc": "UPC-A", "code": "13243546576", "function_type": "B"},
{"bc": "UPC-E", "code": "132435", "function_type": "B"}, {"bc": "UPC-E", "code": "132435", "function_type": "B"},
{"bc": "EAN13", "code": "1324354657687", "function_type": "B"}, {"bc": "EAN13", "code": "4006381333931", "function_type": "B"},
{"bc": "EAN8", "code": "1324354", "function_type": "B"}, {"bc": "EAN8", "code": "1324354", "function_type": "B"},
{"bc": "CODE39", "code": "TEST", "function_type": "B"}, {"bc": "CODE39", "code": "TEST", "function_type": "B"},
{"bc": "ITF", "code": "55867492279103", "function_type": "B"}, {"bc": "ITF", "code": "55867492279103", "function_type": "B"},
{"bc": "NW7", "code": "A00000000A", "function_type": "B"}, {"bc": "NW7", "code": "A00000000A", "function_type": "B"},
{"bc": "CODE93", "code": "A00000000A", "function_type": "B"}, {"bc": "CODE93", "code": "A00000000A", "function_type": "B"},
{"bc": "CODE93", "code": "1324354657687", "function_type": "B"}, {"bc": "CODE93", "code": "4006381333931", "function_type": "B"},
{"bc": "CODE128A", "code": "TEST", "function_type": "B"}, {"bc": "CODE128A", "code": "TEST", "function_type": "B"},
{"bc": "CODE128B", "code": "TEST", "function_type": "B"}, {"bc": "CODE128B", "code": "TEST", "function_type": "B"},
{"bc": "CODE128C", "code": "TEST", "function_type": "B"}, {"bc": "CODE128C", "code": "TEST", "function_type": "B"},