From 13a53ebd757bcbb4b78413837f79aa25569d4082 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 21 Oct 2023 17:08:19 +0200 Subject: [PATCH] Set slowest printing speed --- print_image.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/print_image.sh b/print_image.sh index 25501a0..ae4bc06 100755 --- a/print_image.sh +++ b/print_image.sh @@ -15,6 +15,10 @@ size="$(hex_size "$(("$size" + 10))")" size_x="$(hex_size "$(echo "$data_header" | cut -d' ' -f 1)")" size_y="$(hex_size "$(echo "$data_header" | cut -d' ' -f 2)")" +# Set print speed +printf '\x1D(K\2\0' > $dev +printf '51' > $dev + # Upload graphics data printf '\x1D(L' > $dev printf "$size" > $dev @@ -26,7 +30,8 @@ printf "$size_y" > $dev # size y echo "$data" | base64 -d > $dev # Print graphics data -printf '\x1D(L\2\00002' > $dev +printf '\x1D(L\2\0' > $dev +printf '02' > $dev # Cut paper printf '\n\n\n\x1DVA\0' > $dev