iesoretania / lv_lib_qrcode

QR code generation with LVGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QR code library for LVGL

QR code generation with LVGL. Uses QR-Code-generator by nayuki.

Get started

const char * data = "Hello world";

/*Create a 100x100 QR code*/
lv_obj_t * qr = lv_qrcode_create(lv_scr_act(), 100, lv_color_hex3(0x33f), lv_color_hex3(0xeef));

/*Set data*/
lv_qrcode_update(qr, data, strlen(data));

Notes

  • QR codes with less data are smaller but they scaled by an integer numbers number to best fit to the given size

About

QR code generation with LVGL

License:MIT License


Languages

Language:C 100.0%