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
182dedb675
devterm-printer.service add Restart=on-failure
2022-07-28 14:19:15 +08:00
cuu
f079029294
add CM4 in thermal_printer
2022-06-29 13:43:51 +01:00
cuu
d27d6b31aa
thermal_printer bug fix,print_lines8 cfg null check logic bug
2022-06-22 14:49:05 +00:00
cuu
b68b6bf787
Merge branch 'thermal_fix1' of https://github.com/clockworkpi/DevTerm into thermal_fix1
2022-05-23 23:23:31 -05:00
cuu
a342f7532e
add accelerate for thermal printer
2022-05-23 23:23:07 -05:00
cuu
7a6c896cb6
Merge remote-tracking branch 'origin/main' into thermal_fix1
2022-05-22 10:21:48 +08:00
cuu
682c67aabb
update devtem-socat.sh
2022-05-22 10:20:25 +08:00
cuu
007ac586ba
IsPaper fix
2022-05-21 23:56:29 +00: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
0d92f26384
readme
2022-03-18 00:08:05 +00:00
cuu
b1678d6633
readme
2022-03-17 21:07:09 +08:00
cuu
9480125c5b
thermal_printer README.md
2022-03-17 06:14:14 -05:00
cuu
8339687f04
Esc ! n to switch mode ,GS ! n to set font size
2022-03-17 06:07:37 -05:00
cuu
56e45b58fd
remove debug output of thermal_printer
2022-03-12 03:49:53 +00:00
cuu
34d7d343ba
readme
2022-03-11 20:44:07 +08:00
cuu
e4326d84eb
readme
2022-03-11 20:39:47 +08:00
cuu
d51e760323
thermal printer cjk readme
2022-03-11 20:36:26 +08:00
cuu
c84a67e698
devterm-printer.service with EnvironmentFile=/usr/local/etc/devterm-printer
2022-03-11 06:01:59 -06:00
cuu
ab06c8f192
cjk with printer_set_font
2022-03-11 06:00:10 -06:00
cuu
ffa3fa0aa9
add clang-format cheat
2022-03-10 04:04:31 -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
8eff139781
very close the perfect,adding baseline
2022-03-06 23:48:09 -06:00
cuu
205ebf2c2c
user bbox_height to be the max size of rows,left with too wide linesheight problem
2022-03-06 03:55:05 -06:00
cuu
7b0e930ffc
ttf cjk printing beta tested
2022-03-06 01:13:37 -06:00
cuu
5d0727108d
bug fix,first line disappear fixed,next is clear extra points that appear incorrectly at bottom,and word-to-word alignment
2022-02-28 06:04:37 -06:00
cuu
441adea43f
cjk printing done,but still has bug ,will lose top line of bitmap occasionally
2022-02-27 03:15:40 -06:00
cuu
a7707aa703
disable freetype AA
2022-02-26 17:13:58 +08: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
14b8e42f11
code fix
2022-02-13 13:47:26 +08:00
cuu
b41cf3879e
code fix
2022-02-13 13:46:37 +08: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
1befb7959c
code fix
2022-02-13 13:41:45 +08: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
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
dc41ceb9ab
add gitignore for idea
2022-01-26 15:04:11 +08:00
cuu
ed9ab854c5
update thermal_printer README
2021-12-22 16:47:51 +08:00
cuu
a900c2fff5
add mtp03
2021-12-01 11:06:26 +00:00
cuu
4351dfcef7
fix readme typo
2021-09-16 11:52:00 +08:00
cuu
1ca70d37d9
add eg cli commands in readme
2021-08-18 22:48:43 +08:00
cuu
3cc430a555
add eg cli commands in readme
2021-08-18 20:33:20 +08:00
cuu
013be94ac8
add eg cli commands in readme
2021-08-18 20:29:35 +08:00
cuu
167edbd2f5
add eg cli commands in readme
2021-08-18 20:23:24 +08:00
cuu
ec9598f841
map adc node to /tmp/devterm_adc
2021-08-11 15:10:07 +08:00