Git Product home page Git Product logo

Comments (6)

liamHowatt avatar liamHowatt commented on July 24, 2024

Hey, thanks. Indeed the v9 tool doesn't work. The docs still link to the v8 converter but the output is not compatible with v9 LVGL. We'll keep this issue open until it's corrected.

Until then, 2 thing worked for me.

1.

Use the v8 converter and then edit the lv_img_dsc_t at the bottom of the output.

E.g. change this output from the v8 converter...

const lv_img_dsc_t bulb = {
  .header.cf = LV_IMG_CF_RAW_CHROMA_KEYED,
  .header.always_zero = 0,
  .header.reserved = 0,
  .header.w = 60,
  .header.h = 80,
  .data_size = 17693,
  .data = bulb_map,
};

...to this v9 compatible one...

const lv_img_dsc_t bulb = {
  .header.cf = LV_COLOR_FORMAT_RAW,
  .header.w = 60,
  .header.h = 80,
  .data_size = 17693,
  .data = bulb_map,
};

2.

Or you can use the python tool. It worked for me.

python  scripts/LVGLImage.py  --ofmt C  --cf RAW  -o your_output_dir_path   examples/libs/gif/bulb.gif

from lvgl.

hoanglam9925 avatar hoanglam9925 commented on July 24, 2024

The first method worked for me, but it only worked with images smaller than 140 x 140. When I tried to use a file 150 x 150, there were some issues; in the log, it simply said "Couldn't load the source" for images larger than this. Even after raising LV_MEM_SIZE to 128 * 1024, it is still not functioning. How to play a larger-sized GIF
And I have tried play gif from FATFS, but always crash. This is my code:
image
I already enable LV_USE_FS_FATFS flag in config file
image
how to play gif from fatfs. i flashed a .gif file to fatfs

from lvgl.

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.