28 Commits

Author SHA1 Message Date
Mike Sizov
6fc08fded2 Add command for printing 4 shades of grayscale image.
It works in a similar way as a monochrome print, but with few differences:
1. User needs to send 3 rows of color bitstrings for each image row.
2. Printer will stay in place while printing all 3 non-white 'colors',
it will feed the paper each third line.
3. User must multiply height by 3.
4. Command is different: cmd[0] == ASCII_GS && cmd[1] == 118 && cmd[2] == 49

E.g.
For image 200x200, user needs to send header with width 200, height 600.
Image data is arranged the following way (fourth color is blank):
25 bytes (200bits) of 1st color for first row
25 bytes (200bits) of 2nd color for first row
25 bytes (200bits) of 3rd color for first row
25 bytes (200bits) of 1st color for second row
25 bytes (200bits) of 2nd color for second row
...etc...
2023-04-17 00:44:13 +07:00
cuu
c30acbcec5 add ENABLE_VH in print_lines_ft 2022-05-21 11:52:46 +00:00
cuu
167b2f520e test thermal code 2022-05-21 05:57:03 +00:00
cuu
8339687f04 Esc ! n to switch mode ,GS ! n to set font size 2022-03-17 06:07:37 -05:00
cuu
ab06c8f192 cjk with printer_set_font 2022-03-11 06:00:10 -06:00
cuu
31670a4428 indent code with clang-format, add rotation 2022-03-10 04:02:24 -06:00
cuu
3237703ec3 add get_serial_cache_font_width to calc the whole line ser_cache width 2022-03-08 00:55:03 -06:00
cuu
9a21d046e0 printing out cjk ok,but not perfect,need more advanced space between here and there 2022-02-20 02:34:40 -06:00
cuu
4218cd1e88 code fix 2022-02-13 16:58:27 +08:00
cuu
b41cf3879e code fix 2022-02-13 13:46:37 +08:00
cuu
9408d4c237 code fix 2022-02-13 13:43:43 +08:00
cuu
24f1649b90 add print_lines_ft for freetype 2022-02-12 17:54:32 +08:00
cuu
a7ef30e16b correctly read utf8 string into int32_t 2022-02-10 14:35:45 +08:00
cuu
22e587aa7a ser_cache add utf8idx to store utf8 chars 2022-02-09 14:42:53 +08:00
cuu
a900c2fff5 add mtp03 2021-12-01 11:06:26 +00:00
cuu
2e449853c3 remove self test grid printing 2021-07-13 15:06:35 +08:00
cuu
ddd21b4d62 add lock mode for thermal printer when battery is low 2021-05-29 17:14:43 +08:00
cuu
4e06a6e213 add check_battery 2021-05-29 13:25:14 +08:00
cuu
0824e292fd change max print pts with battery level 2021-05-28 19:39:13 +08:00
cuu
bcc984109a tab to be two space in PRINT_STATE 2021-05-16 13:51:52 +08:00
cuu
72eeb89451 tab to be two space in PRINT_STATE 2021-05-16 13:50:39 +08:00
cuu
52b2aaae11 one tab become two spaces 2021-05-16 13:40:12 +08:00
cuu
ae9e649925 bug fix 2021-05-13 17:04:24 +08:00
cuu
3fb2310548 add CONFIG printf 2021-05-13 13:03:00 +08:00
cuu
3186a3216f add CONFIG printf 2021-05-13 13:00:33 +08:00
cuu
c6e3c43116 add CONFIG printf 2021-05-13 12:59:35 +08:00
cuu
e9282f45c6 thermal_printer bug, feed_pitch1 should not use [FOR/BACK]WORD directly 2021-04-24 15:30:21 +08:00
cuu
9278b6bad3 add schematic pdfs and firmware code 2021-03-29 19:32:40 +08:00