19 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
f079029294 add CM4 in thermal_printer 2022-06-29 13:43:51 +01:00
cuu
a342f7532e add accelerate for thermal printer 2022-05-23 23:23:07 -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
c1215b0f1d code fix 2022-02-13 13:40:31 +08:00
cuu
24f1649b90 add print_lines_ft for freetype 2022-02-12 17:54:32 +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
ec9598f841 map adc node to /tmp/devterm_adc 2021-08-11 15:10:07 +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
cab226e6b9 decrease HEAT_TIME 2021-05-28 13:16:31 +08:00
cuu
a3530fd6cf add glob to find i2c adc device path 2021-05-28 12:26:30 +08:00
cuu
9c0e674f78 tested the read_adc with thermal_printer 2021-05-27 13:47:34 +08:00
cuu
46944be3ce minor mod for trackball
add read_adc to read temperature for thermal_printer
2021-05-27 13:28:13 +08:00
cuu
c6e3c43116 add CONFIG printf 2021-05-13 12:59:35 +08:00
cuu
9278b6bad3 add schematic pdfs and firmware code 2021-03-29 19:32:40 +08:00