1 2# QR code 3 4QR code generation with LVGL. Uses [QR-Code-generator](https://github.com/nayuki/QR-Code-generator) by [nayuki](https://github.com/nayuki). 5 6## Get started 7- Download or clone this repository 8 - [Download](https://github.com/lvgl/lv_lib_qrcode.git) from GitHub 9 - Clone: git clone https://github.com/lvgl/lv_lib_qrcode.git 10- Include the library: `#include "lv_lib_qrcode/lv_qrcode.h"` 11- Test with the following code: 12```c 13const char * data = "Hello world"; 14 15/*Create a 100x100 QR code*/ 16lv_obj_t * qr = lv_qrcode_create(lv_scr_act(), 100, lv_color_hex3(0x33f), lv_color_hex3(0xeef)); 17 18/*Set data*/ 19lv_qrcode_update(qr, data, strlen(data)); 20``` 21 22## Notes 23- QR codes with less data are smaller, but they scaled by an integer number to best fit to the given size. 24 25 26## Example 27```eval_rst 28 29.. include:: ../../examples/libs/qrcode/index.rst 30 31``` 32 33## API 34 35```eval_rst 36 37.. doxygenfile:: lv_qrcode.h 38 :project: lvgl 39