From 42c5717ef3f8ad557540a97c48db522cae80c850 Mon Sep 17 00:00:00 2001 From: Ircama Date: Thu, 18 Jan 2024 01:44:00 +0100 Subject: [PATCH] Add utility examples --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 1ebec4d..8058d46 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,13 @@ printer = epson_print_conf.EpsonPrinter() # Decode write_key: printer.reverse_caesar(bytes.fromhex("48 62 7B 62 6F 6A 62 2B")) # last 8 bytes +'Gazania*' + +printer.reverse_caesar(b'Hpttzqjv') +'Gossypiu' + +"".join(chr(b + 1) for b in b'Gossypiu') +'Hpttzqjv' # Decode status: pprint.pprint(printer.status_parser(bytes.fromhex("40 42 44 43 20 53 54 32 0D 0A ....")))