Change the Printer class to implement multiple printer types

This commit is contained in:
n07070
2026-06-01 21:40:13 +02:00
parent a32b515dd2
commit 53560dcf2c
3 changed files with 132 additions and 62 deletions

View File

@@ -101,7 +101,6 @@ app.config["TEMPLATES_AUTO_RELOAD"] = True
# Printer connection
# Uses the class defined in the printer.py file
printer = Printer(app, 0x04B8, 0x0E28)
printer.init_printer()
# Find out if we are running on a Raspberry Pi
rpi = Raspberry(