mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-15 03:38:50 +01:00
readme
This commit is contained in:
parent
ddd21b4d62
commit
dc995cf546
22
Code/thermal_printer/README.md
Normal file
22
Code/thermal_printer/README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# DevTerm Thermal printer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Eos/Pos commands example
|
||||||
|
|
||||||
|
|
||||||
|
#### ESC ! n
|
||||||
|
set printer font index,n:0-4
|
||||||
|
`echo -en "\x1b\x0" > /tmp/DEVTERM_PRINTER_IN`
|
||||||
|
|
||||||
|
|
||||||
|
#### DC2 # n
|
||||||
|
n:0-F, set printer printing density
|
||||||
|
|
||||||
|
`echo -en "\x12\x23\x8" > /tmp/DEVTERM_PRINTER_IN`
|
||||||
|
|
||||||
|
#### DC2 T
|
||||||
|
print the test page
|
||||||
|
`echo -en "\x12\x54" > /tmp/DEVTERM_PRINTER_IN`
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user