Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitbank2/Thermal_Printer
Arduino library to draw text and graphics on BLE thermal printers
https://github.com/bitbank2/Thermal_Printer
Last synced: about 4 hours ago
JSON representation
Arduino library to draw text and graphics on BLE thermal printers
- Host: GitHub
- URL: https://github.com/bitbank2/Thermal_Printer
- Owner: bitbank2
- License: apache-2.0
- Created: 2020-01-07T17:32:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-16T11:37:17.000Z (2 days ago)
- Last Synced: 2024-11-16T12:27:10.030Z (2 days ago)
- Language: C
- Size: 1.37 MB
- Stars: 378
- Watchers: 17
- Forks: 54
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - Thermal_Printer - Arduino library to draw text and graphics on BLE thermal printers. (Hardware 💽 / Thermal Printing)
README
Bluetooth Low Energy
Thermal Printer Library
Copyright (c) 2020 BitBank Software, Inc.
Written by Larry Bank
[email protected]
![printer demo](/ble_prt.jpg?raw=true "Thermal_Printer")
This Arduino library allows you to easily generate text and graphics
and send them to various BLE thermal printers. I can support the printers that I currently own; if your model is not yet supported, the best way to encourage me to support it is to send me funds to buy it.
There are many different
BLE APIs depending on the board manufacturer, I support the three more
popular ones: ESP32, Adafruit and Arduino (e.g. Nano BLE 33). The three main features of
thermal printers are supported by this code - plain text, barcodes (1D+2D) and dot addressable
graphics. The graphics are treated like a display driver - you define a RAM buffer and draw text, dots, lines and bitmaps into it, then send it to the printer. Text output supports the various built-in font size+attribute options of some printers as well as Adafruit_GFX format bitmap fonts (sent as graphics).
See the Wiki: https://github.com/bitbank2/Thermal_Printer/wiki/Public-API for a description of each function.
Features
========
- Supports the GOOJPRT PT-210, MTP-3, PeriPage+ and 'cat' printers (so far)
- Compiles on ESP32, Adafruit nRF52 and Arduino boards with bluetooth
- Supports graphics (dots, lines, text, bitmaps), 1D + 2D barcodes, and plain text output
- Allows printing Adafruit_GFX fonts one line at a time or drawing them into a RAM buffer
- Can scan/connect to printers by BLE name or auto-detect the supported models
- Doesn't depend on any other 3rd party code
Here is a subjective chart of the printer models I've tested and are supported by this code. Please feel free to send me info about other models that work and additional comments about these printers.
If you find this code useful, please consider becoming a Github Sponsor or sending a single donation.
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SR4F44J2UR8S4)