14 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
167b2f520e test thermal code 2022-05-21 05:57:03 +00: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
0153dca17e code fix 2022-02-13 13:44:28 +08:00
cuu
9408d4c237 code fix 2022-02-13 13:43:43 +08:00
cuu
22e587aa7a ser_cache add utf8idx to store utf8 chars 2022-02-09 14:42:53 +08:00
cuu
0824e292fd change max print pts with battery level 2021-05-28 19:39:13 +08:00
cuu
a3530fd6cf add glob to find i2c adc device path 2021-05-28 12:26:30 +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
08f1f1fa4d bug fix 2021-05-13 17:06:03 +08:00
cuu
ae9e649925 bug fix 2021-05-13 17:04:24 +08:00
cuu
9278b6bad3 add schematic pdfs and firmware code 2021-03-29 19:32:40 +08:00