Git Product home page Git Product logo

Comments (7)

kisvegabor avatar kisvegabor commented on May 22, 2024

I can modify the LV_OBJ_FREE_NUM define in lv_conf.h to set the the type of free_num. For example:

#define LV_OBJ_FREE_NUM uint16_t

Using 1000 element in a list could cause other issues. If an element is e.g. 50 px high, the last will be on 50000 px coordinate. Now the GUI should be between -16K and +16K. See misc/gfx/area.h

from lvgl.

scopa90 avatar scopa90 commented on May 22, 2024

Interesting point. If I limit it to 300 then that would be enough (although still outside the 256 range for 8 bits). Either that or I'm more intelligent in how I load the list into memory and the listview.

from lvgl.

kisvegabor avatar kisvegabor commented on May 22, 2024

If you tell what you would like to do hopefully I can suggest a solution. (in a new topic)

from lvgl.

scopa90 avatar scopa90 commented on May 22, 2024

Thanks for the offer. Let me play about with it here and see what I can come up with first as I don't want to waste your valuable time (which should be devoted to further develping littlevgl!)

from lvgl.

kisvegabor avatar kisvegabor commented on May 22, 2024

Okay, see what happens :)
Anyway, the updating of LV_OBJ_FREE_NUM still might be a useful thing.

from lvgl.

kisvegabor avatar kisvegabor commented on May 22, 2024

In lv_conf.h I added LV_OBJ_FREE_NUM_TYPE to define the type of the free number (e.g. uint16_t)

It is available in lvgl/beta. It is the beta version of v5.0 so there are non-backward compatible API changes in it.

from lvgl.

kisvegabor avatar kisvegabor commented on May 22, 2024

Added in v5.0.0

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.