Coder Social home page Coder Social logo

Comments (9)

taxue-alfred avatar taxue-alfred commented on May 27, 2024 1

Emmmm, That is my personal problem!!!!! I am so sorry!!! I find i need VSPI but transfered HSPI which had used by LVGL...
Thank you answer again!!!

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 27, 2024

Can you update to the latest lvgl version? A few weeks ago we have merged the png and file system library to lvgl to make them work better together. See https://docs.lvgl.io/master/libs/png.html

from lv_lib_png.

taxue-alfred avatar taxue-alfred commented on May 27, 2024

Can you update to the latest lvgl version? A few weeks ago we have merged the png and file system library to lvgl to make them work better together. See https://docs.lvgl.io/master/libs/png.html

emm. I try LVGL8.1.0 on ESP32 with arduino, I init the SPI.h and SD.h in fs_init() function, but it warn me [E][sd_diskio.cpp:123] sdSelectCard(): Select Failed".
So LVGL file system can not work in lvgl8.1.0 well. But LVGL8.0.2 work good(lv_lib_png can not work).
So, I think the logic changed possibly which is using Fatfs System?

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 27, 2024

In v8.1 you can enable the file system APIs too from lv_conf.h. So you don't need lv_fs_if.

from lv_lib_png.

taxue-alfred avatar taxue-alfred commented on May 27, 2024

Yes, I know. I meant I had used the file system APIs from lv_conf.h in LVGL8.1. But it not work.
lv_fs_if can work in LVGL8.0.2.

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 27, 2024

How do you mean "not work"? What happens exactly?

Some questions to see what could be the problem:

  • Can you just open a txt file read and close it with lv_fs_... API? If not please send a code to reproduce the issue.
  • How does the related part of lv_conf.h look like?
  • What platform/hardware do you use?

from lv_lib_png.

bhupiister avatar bhupiister commented on May 27, 2024

I am having this weird problem with SD card. I am using M5 Core 2 and lv_Arduino library for lvgl graphics. My SD card is initialized properly and i can read the files. The problem occurs when i read the list the files using lvgl more than couple of times. I can see that if i keep my touch enabled on any lvgl object for long time, it troubles with my SD card module and i get this error "sdSelectCard(): Select Failed".
For example, if i keep my touch on any list for long time but do not select any option, and then try to access my Sd card. i get the above error.

One more clarification i need is, if i use
lv_obj_t *win = lv_win_create(lv_scr_act(), NULL)
Will this create an issue? and on closing the window, is it automatically destroyed?

from lv_lib_png.

taxue-alfred avatar taxue-alfred commented on May 27, 2024

I am having this weird problem with SD card. I am using M5 Core 2 and lv_Arduino library for lvgl graphics. My SD card is initialized properly and i can read the files. The problem occurs when i read the list the files using lvgl more than couple of times. I can see that if i keep my touch enabled on any lvgl object for long time, it troubles with my SD card module and i get this error "sdSelectCard(): Select Failed". For example, if i keep my touch on any list for long time but do not select any option, and then try to access my Sd card. i get the above error.

One more clarification i need is, if i use lv_obj_t *win = lv_win_create(lv_scr_act(), NULL) Will this create an issue? and on closing the window, is it automatically destroyed?

The img show normally When you use the <IMG_NAME>.bin ?

Your No.2 question I do not know. But I recommand you to delete it manually.

from lv_lib_png.

bhupiister avatar bhupiister commented on May 27, 2024

I am having this weird problem with SD card. I am using M5 Core 2 and lv_Arduino library for lvgl graphics. My SD card is initialized properly and i can read the files. The problem occurs when i read the list the files using lvgl more than couple of times. I can see that if i keep my touch enabled on any lvgl object for long time, it troubles with my SD card module and i get this error "sdSelectCard(): Select Failed". For example, if i keep my touch on any list for long time but do not select any option, and then try to access my Sd card. i get the above error.
One more clarification i need is, if i use lv_obj_t *win = lv_win_create(lv_scr_act(), NULL) Will this create an issue? and on closing the window, is it automatically destroyed?

The img show normally When you use the <IMG_NAME>.bin ?

Your No.2 question I do not know. But I recommand you to delete it manually.

I read more about it. It seems the issue is related to SPI bus shared by SD card module and display on M5stack core 2.

from lv_lib_png.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.