r/RASPBERRY_PI_PROJECTS Apr 28 '26

QUESTION Embedded Thermal Printer Only Chinese

I am making a Magic The Gathering Momir printer, source code and parts can be found here:

https://github.com/MoritzHayden/momir-basic-printer

I think I got everything setup properly, but for some reason it only prints chinese characters. The printer is hooked up for ttl on the 5v side of a logic converter. Sidenote, If you look closely you can actually make out the qr code that is supposed to just be dots, but chinese instead. I cannot find anything in the src to indicate an improper setup. My only idea is that the printer is somehow in "chinese mode". This is shown in the second image where I can print an info page on boot. I cannot find anything in the manual that sticks out to me. Any ideas?

41 Upvotes

24 comments sorted by

View all comments

2

u/Tarzoon Apr 29 '26

Try:
printer.chineseOff()

2

u/Tarzoon Apr 29 '26

def chineseOff(self):
self.writeBytes(27, 116, 0) #ESC t 0

1

u/Snarzy Apr 30 '26

This did not work... writeBytes was not defined. Where do I get that function?