model/m_printer_model library

Classes

BLEConfig
Configuration for Bluetooth Low Energy (BLE) communication.
PrintConfig
Configuration for printing. labelSize specifies the size of the label to print on. printSpeed is the speed of the printer, default is 1. packetSize is the size of each packet sent to the printer, default is 64. halfTones indicates whether to use half-tones for printing, default is false. dryRun indicates whether to simulate the print job without sending data to the printer, default is false.
PrintData
PrinterModel
Represents a printer model with its properties and serialization method. The serialize function is used to convert the image data into a format suitable for printing. The bleConfig contains the necessary BLE service and characteristic UUIDs. The dpmm (dots per millimeter) is used to calculate the image size and is derived from the printer's DPI (dots per inch). The rotateImage flag indicates whether the image should be rotated before printing. The brand and deviceName provide identification for the printer model.

Typedefs

ImageData = Image
an alias for the image library's Image class