Browse Source

Fix printer speed setting

master
mid-kid 1 year ago
parent
commit
f272b8fb43
  1. 2
      cut_paper.sh
  2. 5
      print_image.sh

2
cut_paper.sh

@ -2,4 +2,4 @@
set -e set -e
dev=/dev/usb/lp0 dev=/dev/usb/lp0
printf '\x1DVA\1' > $dev printf '\x1DVA\0' > $dev

5
print_image.sh

@ -17,7 +17,7 @@ size_y="$(hex_size "$(echo "$data_header" | cut -d' ' -f 2)")"
# Set print speed # Set print speed
printf '\x1D(K\2\0' > $dev printf '\x1D(K\2\0' > $dev
printf '51' > $dev printf '21' > $dev
# Upload graphics data # Upload graphics data
printf '\x1D(L' > $dev printf '\x1D(L' > $dev
@ -34,4 +34,5 @@ printf '\x1D(L\2\0' > $dev
printf '02' > $dev printf '02' > $dev
# Cut paper # Cut paper
printf '\n\n\n\x1DVA\0' > $dev printf '\n\n\n' > $dev
printf '\x1DVA\0' > $dev

Loading…
Cancel
Save