Giter Site home page Giter Site logo

Actions about esphome HOT 4 CLOSED

clydebarrow avatar clydebarrow commented on June 16, 2024
Actions

from esphome.

Comments (4)

nagyrobi avatar nagyrobi commented on June 16, 2024

I'd find useful a lvgl.widget.delete action (lv_obj_del_async(obj) or lv_obj_del).
Use case is a bootlogo, which could be fullscreen obj with a centered image, however just hiding it just keeps it uselessly in memory. We could free that resource...

from esphome.

clydebarrow avatar clydebarrow commented on June 16, 2024

The problem with consolidating all the actions under one is that some things, like text: are only applicable to certain types of widgets. By having a different action for label the schema for that action can include text: as an option, whereas the schema for line: would not points but not text. At the time the schema is parsed the type of the object referenced by id may not be known, so checking that only the appropriate options are used gets complicated, whereas right now it will throw a clear error message if an inappropriate option is used.

from esphome.

clydebarrow avatar clydebarrow commented on June 16, 2024

I'd find useful a lvgl.widget.delete action (lv_obj_del_async(obj) or lv_obj_del). Use case is a bootlogo, which could be fullscreen obj with a centered image, however just hiding it just keeps it uselessly in memory. We could free that resource...

The image data is stored in flash memory, so deleting the img object won't free much memory. If and when run-time loading of images e.g from urls is supported then memory management can be implemented as part of it, but right now there's very little to be gained.

from esphome.

nagyrobi avatar nagyrobi commented on June 16, 2024

I see thanks.

from esphome.

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.