Plain English

Prints a QR code — the familiar square matrix barcode you see everywhere. QR codes can hold thousands of characters and are scannable by any smartphone camera. They support error correction so they still work even if partially damaged.

When to use

When you need a barcode that smartphones can scan, or when encoding URLs, long text, or large amounts of data.

Syntax

ESC+2D30,params,data

Parameters

ParameterDescription
model
QR model: 1 or 2 (use 2 for standard)
ecc
Error correction: L (7%), M (15%), Q (25%), H (30%)
size
Module size in dots
data
The data to encode

Example

ESC+A
ESC+H0100
ESC+V0050
ESC+2D30,06,03,04,01,00,0000https://example.com
ESC+Q1
ESC+Z

QR code encoding a URL

Try it in the playground View all SBPL commands