/Thermal_Printer

Arduino library to draw text and graphics on BLE thermal printers

Primary LanguageC

Bluetooth Low Energy
Thermal Printer Library
Copyright (c) 2020 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com

printer demo


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 both ESP32 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