|
@ -15,9 +15,12 @@ size="$(hex_size "$(("$size" + 10))")" |
|
|
size_x="$(hex_size "$(echo "$data_header" | cut -d' ' -f 1)")" |
|
|
size_x="$(hex_size "$(echo "$data_header" | cut -d' ' -f 1)")" |
|
|
size_y="$(hex_size "$(echo "$data_header" | cut -d' ' -f 2)")" |
|
|
size_y="$(hex_size "$(echo "$data_header" | cut -d' ' -f 2)")" |
|
|
|
|
|
|
|
|
|
|
|
# Initialize printer |
|
|
|
|
|
printf '\x1B@' > $dev |
|
|
|
|
|
|
|
|
# Set print speed |
|
|
# Set print speed |
|
|
printf '\x1D(K\2\0' > $dev |
|
|
printf '\x1D(K\2\0' > $dev |
|
|
printf '21' > $dev |
|
|
printf '22' > $dev |
|
|
|
|
|
|
|
|
# Upload graphics data |
|
|
# Upload graphics data |
|
|
printf '\x1D(L' > $dev |
|
|
printf '\x1D(L' > $dev |
|
|