eliasweingaertner / peripage-A6-bluetooth

Directly printing on a Peripage A6 thermal printer via Bluetooth
MIT License
68 stars 11 forks source link

USB Support? #7

Open zeus-web opened 2 years ago

zeus-web commented 2 years ago

HI, as the printer is also recognized via USB, would it be possible to add Support for printing via USB?

Thanks a lot for considering :-)

joshoua commented 1 year ago

This is possible with pyusb (and libusb/libusb_package). However, on Windows, you have to use something like Zadig to make a driver for the PeriPage that pyusb can use. It does replace the proprietary PeriPage printer driver(s) used by the printers. If I try it on Linux or Mac I may come back here and share how it works on those too.

Anyway, I am thinking of making a fork - "PeriPage-A6-USB" - if anyone is interested. I was not impressed by PeriPage's printer driver that doesn't even let you (easily) pick the paper length. So, so far I am just browsing the information available about the printer from this repo and bitrate16's ppa6-python. I am able to print ascii strings through usb after messing around for a bit.