Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

No image displayed when testing #4

Open
eduardo-carletti opened this issue Jul 16, 2020 · 7 comments
Open

No image displayed when testing #4

eduardo-carletti opened this issue Jul 16, 2020 · 7 comments

Comments

@eduardo-carletti
Copy link

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
Copy link
Author

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.

@kisvegabor
Copy link
Member

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.

@Pupil2013
Copy link

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

Enable this will fix it

@Pupil2013
Copy link

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

@Zheckiss
Copy link

Zheckiss commented Jun 29, 2023

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.

@kisvegabor
Copy link
Member

What happens if you increase LV_MEM_SIZE?

@Zheckiss
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants