Giter Site home page Giter Site logo

Comments (5)

flexiti avatar flexiti commented on June 11, 2024 1

my mistake - typo , its ok now

from openhasp.

fvanroie avatar fvanroie commented on June 11, 2024

LVGL does not support URLs in lv_img_set_src directly. openHASP can load the data into memory first before passing it onto LVGL. This most likely requires PSram because it is very memory intensive.

You can use void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char* payload, bool update) to pass the parameters to openHASP instead of LVGL. like so:

hasp_process_obj_attribute(MyImage, "src", "http://192.168.0.50/kamera/img/gate.png", true); 

from openhasp.

flexiti avatar flexiti commented on June 11, 2024

Still black

from openhasp.

fvanroie avatar fvanroie commented on June 11, 2024

Check the memory, does your board have PSram? Increase the debug level and check the logs, ...

from openhasp.

flexiti avatar flexiti commented on June 11, 2024

ok, I'll do more tests.

Ps. it works ok from the script


{"page":11,"bg_color":"#000000","comment":"---------- Page 11 Gate ----------"}
{"id":1, "obj":"img","src":"http://192.168.0.50/kamera/img/gate.png","auto_size":1}

doesn't that mean the memory is adequate?

--
Device Memory
Free Heap | 101.65 KiB
Free Block | 91.98 KiB
Fragmentation | 9%
PSRam Free | 7.36 MiB
PSRam Size | 7.98 MiB
LVGL Memory
Total | 64.00 KiB
Free | 38.03 KiB
Fragmentation | 2%

from openhasp.

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.