Created
December 4, 2023 17:43
-
-
Save vinhjaxt/f764adbe6ac8db4f080ae359dd85a673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import escpos.printer as printer | |
cups_conn = printer.CupsPrinter(host="192.168.2.1",port=631,printer_name="XP-58IIH") # Default CUPS printer | |
cups_conn.textln("Hello CUPS!") # or any python-escpos command | |
cups_conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment