# QR-Code Generator (/examples/libs/qrcode)



Generates QR codes as LVGL canvas images. Enable with `LV_USE_QRCODE` in `lv_conf.h`.

QR code colors and quiet zone [#qr-code-colors-and-quiet-zone]

<LvglExampleBrief>
  Encode a URL with custom dark/light colors and a padded quiet zone.
</LvglExampleBrief>

The QR code is fixed at 150 px and recolored: a dark blue `dark_color` on a
light blue `light_color` instead of the default black-on-white. `quiet_zone`
adds the standard light margin so scanners lock on, and a matching border
frames it against the screen.

<LvglExample name="lv_example_qrcode_basic" path="libs/qrcode/qrcode_basic/lv_example_qrcode_basic" />
