bitbank2 / Thermal_Printer

Arduino library to draw text and graphics on BLE thermal printers
Apache License 2.0
383 stars 54 forks source link

PeriPage support #6

Closed Gianpy86 closed 3 years ago

Gianpy86 commented 3 years ago

Hello,

I found a way to print on PeriPage printer too.

basically, for text is enough to send a hex string before sending the text you want to print!!

bitbank, is this project something you wanna keep alive? if yes, can we collaborate?

regards

Gianpy86 commented 3 years ago
      String startStr = hexToAscii("10fffe01");
      tpPrint((char *)&startStr);
      tpSetFont(0, 0, 0, 0, 0);
      tpPrint((char *)"12x24 plain text\n");

this works on PeriPage printer

bitbank2 commented 3 years ago

Thanks for sharing this. The high resolution version (304 dpi) looks interesting to me, but I don't have any use for it and spending $50 just to experiment with it is outside my gadget budget. Maybe add your new info to the README and I'll merge it in.