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
d27d6b31aa
thermal_printer bug fix,print_lines8 cfg null check logic bug
2022-06-22 14:49:05 +00:00
cuu
a342f7532e
add accelerate for thermal printer
2022-05-23 23:23:07 -05: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
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
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
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
a900c2fff5
add mtp03
2021-12-01 11:06:26 +00: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
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
9179e0abc2
bug fix
2021-05-14 09:24:09 +08:00
cuu
ae9e649925
bug fix
2021-05-13 17:04:24 +08:00
cuu
fb12b78724
add PRINTF, StandardOutput for debugging
2021-05-13 16:50:01 +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
065841830e
change the paper detecting status to LOW
2021-04-19 21:30:19 +08:00
cuu
fc8c648512
thermal_printer,temperature(),WringPi has no INPUT_ANALOG,now ASK4PAPER==HIGH issue left
2021-04-18 04:05:01 +01:00
cuu
9278b6bad3
add schematic pdfs and firmware code
2021-03-29 19:32:40 +08:00