Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from escposprinter import *
from usb.core import find
def getAllPrinters():
for i in find(find_all=True):
print(i)
def printInvoiceFooter():
p = printer.Usb(0x0fe6, 0x811e, in_ep=0x82, out_ep=0x02)
if p is not None:
p.set(font='c', codepage='cp1251', size='2x', align='right', bold=True)
p.qr('https://arcadiansoftware.co', box_size=8,
version=1)
# p.barcode('123123123', 'NW7', 255, 6, 'OFF', 'A')
# p.barcode(, bc, width, height, pos, font)
p.set(font='c', codepage='cp1251', size='2x', align='right', bold=True)
# p.text('Gracias')
p.text(' ')
p.text(' ')
p.text(' ')
p.text(' ')
p.text(' ')
p.text(' ')
p.text(' ')
p.text(' ')
p.cut()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.