cuu a900c2fff5 add mtp03 2 yıl önce
..
etc 5e37a70a51 edit devterm-printer.service 3 yıl önce
usr ec9598f841 map adc node to /tmp/devterm_adc 2 yıl önce
.gitignore c6e3c43116 add CONFIG printf 3 yıl önce
Makefile a900c2fff5 add mtp03 2 yıl önce
README.md 4351dfcef7 fix readme typo 2 yıl önce
config.h a900c2fff5 add mtp03 2 yıl önce
devterm_thermal_printer.c a900c2fff5 add mtp03 2 yıl önce
logo.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
pcf_5x7-ISO8859-1_5x7.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
pcf_6x12-ISO8859-1_6x12.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
pcf_7x14-ISO8859-1_7x14.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
printer.c a900c2fff5 add mtp03 2 yıl önce
printer.h 0824e292fd change max print pts with battery level 3 yıl önce
ttf_Px437_PS2thin1_8x16.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
ttf_Px437_PS2thin2_8x16.h 9278b6bad3 add schematic pdfs and firmware code 3 yıl önce
utils.c c6e3c43116 add CONFIG printf 3 yıl önce
utils.h fb12b78724 add PRINTF, StandardOutput for debugging 3 yıl önce

README.md

DevTerm Thermal printer

Console commands example

echo "Hello DevTerm" > /tmp/DEVTERM_PRINTER_IN

echo -e "Hello DevTerm\n\n\n\n\n\n" > /tmp/DEVTERM_PRINTER_IN

cat file.txt > /tmp/DEVTERM_PRINTER_IN

ncal -hb | tee > /tmp/DEVTERM_PRINTER_IN

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

How to run it from source

  • make
  • sudo systemctl stop devterm-printer
  • sudo cp -rf devterm_thermal_printer.elf /usr/local/bin
  • sudo systemctl start devterm-printer