Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aapeliv/ccrp
Python library for cheap receipt printers
https://github.com/aapeliv/ccrp
Last synced: 26 days ago
JSON representation
Python library for cheap receipt printers
- Host: GitHub
- URL: https://github.com/aapeliv/ccrp
- Owner: aapeliv
- License: mit
- Created: 2024-06-18T13:31:49.000Z (5 months ago)
- Default Branch: develop
- Last Pushed: 2024-06-18T14:30:54.000Z (5 months ago)
- Last Synced: 2024-09-19T18:36:50.422Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# 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](https://volcora.com/products/thermal-receipt-printer?variant=39564102631479), [Amazon](https://www.amazon.com/dp/B0C1KRY98H/). There is a [User Manual](https://cdn.shopify.com/s/files/1/0257/3225/1703/files/General_User_Manual.pdf) and [Commands Manual](https://cdn.shopify.com/s/files/1/0257/3225/1703/files/Commands_Manual.pdf) 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.