Fotobox1/printer.py
2025-06-27 09:51:04 +02:00

10 lines
184 B
Python
Executable File

#!/usr/bin/python
from escpos.printer import Serial
printer = Serial(devfile='/dev/usb/lp0', baudrate=9600)
printer.text("Test")
printer.qr("https://fotobox.online/")
printer.cut()