Skip to content

Arduino library to draw text and graphics on BLE thermal printers

License

Notifications You must be signed in to change notification settings

witnessmenow/Thermal_Printer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

paypal

About

Arduino library to draw text and graphics on BLE thermal printers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 77.2%
  • C++ 22.8%