From dc995cf54683ab8fcfcb345a41f4c7fbd2b9bb97 Mon Sep 17 00:00:00 2001 From: cuu Date: Sat, 29 May 2021 17:34:08 +0800 Subject: [PATCH] readme --- Code/thermal_printer/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Code/thermal_printer/README.md diff --git a/Code/thermal_printer/README.md b/Code/thermal_printer/README.md new file mode 100644 index 0000000..d0a814d --- /dev/null +++ b/Code/thermal_printer/README.md @@ -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` + +