/ccrp

Python library for cheap receipt printers

Primary LanguagePythonMIT LicenseMIT

ccrp

This library provides a basic python package to utilize Cheap Chinese Receipt Printers.

It currently only supports the "Volcora 80mm POS Thermal Receipt Printer - 50020X Series" using USB connection. Volcora's site, Amazon. There is a User Manual and Commands Manual online.

The receipt printer basically talks ESC/POS, but there are some minor quirks.

Demo

You can see sample usage in demo.py, just run it with python3 demo.py or however you run your python scripts.

Images

The printer has a system for installing bitmaps and printing them, this library implements that. You need the images in black and white binary format, put them in images/ and run generate.py myimage.png. It will generate myimage.py with three variables: width, height, and bits, you then need to call print_bits_bitmap(bits, width, height) to print it out.