QRCODE display with littlevgl

I have a project which need to display QRCODE,How can I realize it? do you have any suggest?

I would suggest making your QR code an image and then displaying that with the lv_img object.

I’ve used this library to generate QR code: https://github.com/nayuki/QR-Code-generator
And then used a lv_canvas to display the generated QR code. lv_canvas can have LV_IMG_CF_INDEXED1 color format to save space.

In dev-6.0 there are nice functions to set the palette of the canvas and set its pixels.

In v5.3 you need to manually set the the first 2x4 byte of the buffer to the two color you want to see on the QR code.

Thanks,I will try it.

Thanks for your suggest!

Hi, do you have any example code (or documentation) showing how to use lv_canvas? I am unable to get my QR data displaying as an image (image shows “No Data”) and would like to try using lv_canvas instead.

How did you try it with the image? Probably there is only a small problem with it.

Here’s the basic code:

static const uint8_t img_qrcode_map[] = {
        0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 
        0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x8c, 0x08, 0x02, 0x00, 0x00, 0x00, 0x21, 0xa2, 0xd6, 
        0x69, 0x00, 0x00, 0x02, 0x86, 0x49, 0x44, 0x41, 0x54, 0x78, 0x9c, 0xed, 0xdd, 0xc1, 0x6e, 0xe3, 
        0x30, 0x0c, 0x00, 0xd1, 0xb8, 0xc8, 0xff, 0xff, 0xb2, 0x7b, 0xeb, 0x45, 0x06, 0x4a, 0x10, 0x24, 
        0xa5, 0x31, 0xe6, 0x1d, 0x17, 0xdb, 0x24, 0xee, 0x40, 0x00, 0x21, 0x57, 0xce, 0x75, 0xdf, 0xf7, 
        0x47, 0x67, 0xfb, 0xd9, 0xfd, 0x01, 0xf4, 0x3f, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0x46, 
        0x02, 0xf8, 0xae, 0xff, 0x74, 0x5d, 0xd7, 0xfc, 0xe7, 0xf8, 0x13, 0x99, 0x36, 0x83, 0x9f, 0x30, 
        0x37, 0xb8, 0x1e, 0x78, 0xf9, 0xae, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0x46, 
        0x02, 0x78, 0x98, 0xee, 0x56, 0x7d, 0xfb, 0x7b, 0x7b, 0x47, 0xa9, 0xa0, 0xed, 0x97, 0xef, 0x4a, 
        0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x80, 0xd0, 0x74, 0xb7, 0xca, 0x4d, 
        0x65, 0x55, 0x9b, 0x69, 0xc1, 0xd7, 0x89, 0x7c, 0xc8, 0xc9, 0xfd, 0xbd, 0xf4, 0x94, 0xe8, 0x4a, 
        0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x80, 0xe4, 0x74, 0xb7, 0x57, 0xeb, 
        0x9d, 0xd9, 0x03, 0xb9, 0x92, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0x00, 
        0x39, 0xdd, 0xad, 0x63, 0xdb, 0xe3, 0xbc, 0xd7, 0xb7, 0x77, 0x37, 0xcc, 0x95, 0x04, 0x60, 0x24, 
        0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0xc9, 0xe9, 0x6e, 0xef, 0x50, 0xd4, 0x7a, 0xaf, 
        0x36, 0x62, 0xf8, 0xf2, 0x5d, 0x49, 0x00, 0x46, 0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 0x8c, 0x04, 
        0x10, 0x9a, 0xee, 0x4e, 0x3b, 0xfb, 0x10, 0xdc, 0xbb, 0xab, 0x9a, 0xc1, 0xb6, 0x5f, 0xbe, 0x2b, 
        0x09, 0xc0, 0x48, 0x00, 0x46, 0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 0xae, 0xf3, 0x6f, 0x4d, 0xb6, 
        0x0e, 0x57, 0xe7, 0x5f, 0xfe, 0xc7, 0x95, 0x84, 0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 
        0x48, 0x00, 0xa1, 0xe7, 0xdd, 0x05, 0xf7, 0xca, 0x4a, 0xac, 0xef, 0x95, 0x7e, 0xf7, 0xdc, 0x0f, 
        0x4e, 0x5e, 0x5a, 0x90, 0x2b, 0x09, 0xc0, 0x48, 0x00, 0x46, 0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 
        0xca, 0xf6, 0xee, 0x72, 0x33, 0x61, 0xd5, 0xb3, 0x8b, 0x87, 0x9f, 0x91, 0x52, 0xf5, 0x44, 0x94, 
        0xe0, 0x2f, 0xc4, 0x95, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0xa3, 
        0x67, 0x66, 0xab, 0xe6, 0xbd, 0xa0, 0xc9, 0x61, 0x32, 0xb7, 0x2b, 0x18, 0xbc, 0x58, 0x57, 0x12, 
        0x80, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0x20, 0xb9, 0xc1, 0xda, 
        0xb7, 0x9d, 0x5a, 0xf5, 0xee, 0xc3, 0x5a, 0x8f, 0x4c, 0xbb, 0x92, 0x00, 0x8c, 0x04, 0x60, 0x24, 
        0x00, 0x23, 0x01, 0x18, 0x09, 0x20, 0x34, 0xdd, 0x4d, 0xde, 0x1a, 0x1f, 0xde, 0x60, 0xdd, 0xfb, 
        0xe0, 0x42, 0x6f, 0x9f, 0xbf, 0x87, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 0xbc, 
        0xe4, 0x60, 0xf3, 0xe3, 0x55, 0xf4, 0xfd, 0x09, 0x63, 0xee, 0x75, 0x56, 0x4e, 0x77, 0xef, 0x61, 
        0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0x0f, 0xd3, 0xdd, 0xde, 0x67, 0xf0, 0x15, 
        0x7e, 0x3b, 0x6f, 0x6e, 0x83, 0xb1, 0x6a, 0x3b, 0xb1, 0x70, 0x57, 0xd0, 0x95, 0x04, 0x60, 0x24, 
        0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0xa1, 0xa3, 0x2f, 0x93, 0xb7, 0x26, 0x73, 0xff, 
        0xa7, 0xf0, 0x07, 0xab, 0x66, 0xc2, 0xaa, 0x57, 0xfe, 0xb8, 0x92, 0x10, 0x8c, 0x04, 0x60, 0x24, 
        0x00, 0x23, 0x01, 0x18, 0x09, 0x20, 0x79, 0xb0, 0xb9, 0xef, 0x66, 0x65, 0x4e, 0xfa, 0xb1, 0x35, 
        0xad, 0x53, 0x59, 0x15, 0x57, 0x12, 0x80, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 
        0x8c, 0x3e, 0xb6, 0xa6, 0x4f, 0xe1, 0xd7, 0xc5, 0x55, 0xdd, 0xaa, 0x8e, 0x4c, 0x80, 0xde, 0x99, 
        0x7d, 0x0f, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0x46, 0x02, 0x40, 0x4e, 0x77, 0xe9, 0x9d, 
        0xba, 0xbe, 0x63, 0xbc, 0xad, 0x7f, 0xac, 0xe8, 0x4a, 0x02, 0x30, 0x12, 0x80, 0x91, 0x00, 0x8c, 
        0x04, 0x60, 0x24, 0x80, 0xe4, 0x74, 0x37, 0x79, 0xd2, 0x36, 0x7d, 0x63, 0xb4, 0x6a, 0xef, 0x6e, 
        0x3b, 0x57, 0x12, 0x80, 0x91, 0x00, 0x8c, 0x04, 0x60, 0x24, 0x00, 0x23, 0x01, 0x84, 0xa6, 0xbb, 
        0xbd, 0xa7, 0x68, 0x0b, 0xbf, 0x9c, 0x78, 0xef, 0xe9, 0x57, 0xbf, 0x50, 0xe4, 0xcd, 0x8c, 0x04, 
        0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0x00, 0xf0, 0xbc, 0x3b, 0xb9, 0x92, 0x00, 0x8c, 0x04, 
        0x60, 0x24, 0x00, 0x23, 0x01, 0x18, 0x09, 0xc0, 0x48, 0x00, 0xbf, 0x88, 0x86, 0x03, 0x1d, 0x9a, 
        0x83, 0x2f, 0x86, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, 

screen_builder() {
    lv_img_dsc_t img_qrcode = {
        .header.always_zero = 0,
        .header.w = 140,
        .header.h = 140,
        .data_size = 703,
        .header.cf = LV_IMG_CF_RAW,
        .data = img_qrcode_map,

    lv_obj_t * img = lv_img_create(lv_scr_act(), NULL);
    lv_img_set_src(img, &img_qrcode);

I am trying to follow the example in this issue (and am even using the same img_qrcode_map data).

I’ve tried various cf settings, which seemed to be the issue for him.

These QR codes need to be dynamically generated, so I do not want to save image files if possible.

I’ve updated the code a bit (still not working).


#include "lvgl.h"
#include <stdint.h>


static const LV_ATTRIBUTE_MEM_ALIGN uint8_t testqr_map[] = {
  0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 
  0x00, 0x00, 0x00, 0xaf, 0x00, 0x00, 0x00, 0xaf, 0x08, 0x06, 0x00, 0x00, 0x00, 0x8b, 0x92, 0x8e, 
  0x75, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00, 
  0x00, 0x04, 0x67, 0x41, 0x4d, 0x41, 0x00, 0x00, 0xb1, 0x8f, 0x0b, 0xfc, 0x61, 0x05, 0x00, 0x00, 
  0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x12, 0x00, 0x00, 0x0b, 0x12, 0x01, 0xd2, 
  0xdd, 0x7e, 0xfc, 0x00, 0x00, 0x0a, 0x65, 0x49, 0x44, 0x41, 0x54, 0x78, 0x5e, 0xed, 0x9d, 0xd1, 
  0x72, 0xe3, 0x38, 0x0c, 0x04, 0xf3, 0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xe8, 0x8e, 0xef, 0x86, 0xab, 0x5b, 0x9f, 
  0xfa, 0x43, 0xf3, 0x59, 0x05, 0x5d, 0xe0, 0x2d, 0x4c, 0x4b, 0xda, 0xcc, 0x6e, 0x58, 0xa8, 0x3e, 
  0x8d, 0xa7, 0xf5, 0xfe, 0x93, 0xf0, 0xd2, 0xa2, 0x13, 0x1f, 0x07, 0xba, 0x1c, 0xe0, 0x87, 0x96, 
  0xae, 0x4c, 0xa2, 0x1b, 0x07, 0xa0, 0x03, 0x81, 0x17, 0x1a, 0x96, 0xf0, 0x7d, 0x1c, 0x08, 0xbc, 
  0xfb, 0xf4, 0x22, 0x99, 0x40, 0x07, 0x02, 0x2f, 0x34, 0x2c, 0xe1, 0xfb, 0x38, 0x10, 0x78, 0xf7, 
  0xe9, 0x45, 0x32, 0x81, 0x0e, 0x04, 0x5e, 0x68, 0x58, 0xc2, 0xf7, 0x71, 0x20, 0xf0, 0xee, 0xd3, 
  0x8b, 0x64, 0x02, 0x1d, 0x08, 0xbc, 0xd0, 0xb0, 0x84, 0xef, 0xe3, 0x40, 0xe0, 0xdd, 0xa7, 0x17, 
  0xc9, 0x04, 0x3a, 0x10, 0x78, 0xa1, 0x61, 0x09, 0xdf, 0xc7, 0x81, 0xc0, 0xbb, 0x4f, 0x2f, 0x92, 
  0x09, 0x74, 0x20, 0xf0, 0x42, 0xc3, 0x12, 0xbe, 0x8f, 0x03, 0xff, 0x01, 0xc0, 0xd4, 0xd4, 0xe4, 
  0xad, 0x13, 0xfa, 0x61, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, 

lv_img_dsc_t testqr = {
  .header.always_zero = 0,
  .header.w = 175,
  .header.h = 175,
  .data_size = 2768,
  .header.cf = LV_IMG_CF_RAW,
  .data = testqr_map,



builder() {
  lv_obj_t * img = lv_img_create(lv_scr_act(), NULL);
  lv_img_set_src(img, &testqr);
  lv_obj_align(img, NULL, LV_ALIGN_IN_BOTTOM_MID, -150, -500);
  lv_obj_set_size(img, 200, 200);

Also, I am getting these warnings:

Warn: Image draw cannot open the image resource   (/Users/.../lvgl/lv_draw/lv_draw_img.c #311) 
Warn: Image draw error    (/Users/.../lvgl/lv_draw/lv_draw_img.c #82)

I was able to solve this problem by using a different number of bits per pixel. Did not realize my screen was unable to draw lower BPP :stuck_out_tongue:

LittlevGL couldn’t decode LV_IMG_CF_RAW format on its own because it’s raw and library doesn’t know what to do with it. You should use e.g. LV_IMG_CF_TRUE_COLOR but I suppose you did it if it’s working :slight_smile: