Giter Site home page Giter Site logo

Comments (5)

s-hadinger avatar s-hadinger commented on June 9, 2024

The easiest way if it is not performance sensitive is to use https://github.com/berry-lang/berry_mapping

Otherwise you need to do it the hard way.

There are plenty of examples in Tasmota https://github.com/arendst/Tasmota/tree/development/lib/libesp32/berry_tasmota/src

from berry.

darcyg avatar darcyg commented on June 9, 2024

@s-hadinger
I hope to extend the function of tasmota's berry by adding a custom xxx.be in embedded. but encountered a problem
I can't generate solidified_xxx_xxx.h in solidify.
I tried to compile the berry of this project into bin format, and then put it under /usr/local/bin/
But I can't generate solidified_xxx_xxx.h file with berry -s -g or cat solidify_all.be | berry -s -g.
May I ask how to generate solidified_xxx_xxx.h.
thanks

from berry.

s-hadinger avatar s-hadinger commented on June 9, 2024

You just need to compile a local version of Berry. Use make in lib/libesp32/berry. Then change directory to lib/libesp32/berry_tasmota and use ./solidify_all.be

from berry.

darcyg avatar darcyg commented on June 9, 2024

You just need to compile a local version of Berry. Use make in lib/libesp32/berry. Then change directory to lib/libesp32/berry_tasmota and use ./solidify_all.be

After I execute it, I get an error

error: cannot open file '-s -g'.

from berry.

darcyg avatar darcyg commented on June 9, 2024

@s-hadinger
thanks
I have successfully executed with cat solidify_all.be | ../berry/berry -s -g and obtained the solidifed_xxx.h file
But I found that the four files i2c_axp192.be / i2c_axp202.be / lv_tasmota_widgets.be / lv_tasmota.be cannot be compiled
For the two files of i2c, it is prompted that the I2C_Driver class cannot be found during compilation. I couldn't get both files to compile after i2c_driver.be, had to remove
The two files of lv cannot be compiled. an error message

Parsing: python_compat.be
Parsing: zigbee_zcl_frame.be
Parsing: energy.be
Parsing: test_crypto.be
Parsing: animate_module.be
Parsing: trigger_class.be
Parsing: lv_tasmotaa_widgets.be
syntax_error: string:96: '_lvgl' undeclared (first use in this function)
stack traceback:
: in native function
: in function parse_file
: in function main

Another error showing

Parsing: python_compat.be
Parsing: zigbee_zcl_frame.be
Parsing: energy.be
Parsing: test_crypto.be
Parsing: animate_module.be
Parsing: trigger_class.be
Parsing: dyn.be
Parsing: persist.be
Parsing: zigbee_zb_coord.be
Parsing: lv_tasmota.be
syntax_error: string:29: 'lv_clock' undeclared (first use in this function)
stack traceback:
: in native function
: in function parse_file
: in function main

from berry.

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.