@ -15,9 +15,12 @@ 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)")"
# Initialize printer
printf '\x1B@' > $dev
# Set print speed
printf '\x1D(K\2\0' > $dev
printf '21' > $dev
printf '22' > $dev
# Upload graphics data
printf '\x1D(L' > $dev