Bluetooth Low Energy
Thermal Printer Library
Copyright (c) 2020 BitBank Software, Inc.
Written by Larry Bank
[email protected]
This Arduino library allows you to easily generate text and graphics and send them to a BLE thermal printer. Since there are many different BLE APIs depending on the board manufacturer, I decided to support the more popular ones - ESP32 and Arduino (Nano BLE 33). The two main features of thermal printers are supported by this code - plain text and dot addressable graphics. The graphics are treated like a display driver. You define a buffer and draw text, dots, lines and bitmaps into it, then send it to the printer. Text output supports the various font size+attribute options of the printer. See the include (.H) file for a description of each function.
Features
========
- Supports the GOOJPRT PT-210 printer (so far)
- Compiles on ESP32, Adafruit nRF52 and Arduino Nano 33 BLE
- Supports graphics (dots, lines, text, bitmaps) and plain text output
- Includes easy to use BLE scanning and connection logic
- Doesn't depend on any other 3rd party code
If you find this code useful, please consider sending a donation.