lv_lib_qrcode icon indicating copy to clipboard operation
lv_lib_qrcode copied to clipboard

No image displayed when testing

Open eduardo-carletti opened this issue 4 years ago • 7 comments

Hello, I am trying to test the library as suggested by the example, but it only shows "NO DATA" in my display. My hardware is a 128x64 dot monochrome, and its working fine with others objects (images and labels). Are the instructions "lv_qrcode_create" and "lv_qrcode_update" all that is needed to display the QR Code?

eduardo-carletti avatar Jul 16 '20 12:07 eduardo-carletti

Hello, I am trying to test the library as suggested by the example, but it only shows "NO DATA" in my display. My hardware is a 128x64 dot monochrome, and its working fine with others objects (images and labels). Are the instructions "lv_qrcode_create" and "lv_qrcode_update" all that is needed to display the QR Code?

The "NO DATA" message was due a image object that was created but not filled. In fact, the QR Code component is not generating any data on display.

eduardo-carletti avatar Jul 16 '20 12:07 eduardo-carletti

Hi,

I tested with the example in the README and it worked well for me.

Please be sure to update lvgl and QR code lin to the latest version from master.

kisvegabor avatar Jul 17 '20 08:07 kisvegabor

/* 1: Enable indexed (palette) images */
#define LV_IMG_CF_INDEXED       1

Enable this will fix it

Pupil2013 avatar Sep 30 '22 02:09 Pupil2013

The qr lib use canvas and img widgets,the canvas use the indexed color

Pupil2013 avatar Sep 30 '22 02:09 Pupil2013

I'm using ESP-IDF and ported lib of qrcode. After callling lv_qrcode_update(qr, data, strlen(data)); application rebooted probably due to memory violation. Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Zheckiss avatar Jun 29 '23 03:06 Zheckiss

What happens if you increase LV_MEM_SIZE?

kisvegabor avatar Jun 29 '23 18:06 kisvegabor

I have updated the lvgl from esp board manufacturer and error is gone.

Zheckiss avatar Jun 30 '23 00:06 Zheckiss