Comments (5)
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.
@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.
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.
You just need to compile a local version of Berry. Use
make
inlib/libesp32/berry
. Then change directory tolib/libesp32/berry_tasmota
and use./solidify_all.be
After I execute it, I get an error
error: cannot open file '-s -g'.
from berry.
@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 functionparse_file
: in functionmain
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 functionparse_file
: in functionmain
from berry.
Related Issues (20)
- Complete Translation of documentation to Spanish available HOT 3
- FFI: pass list as argument HOT 17
- berry json module load HEX error HOT 10
- Who maintains this project? HOT 37
- Add to read the docs HOT 3
- Warning in m_setbytes HOT 2
- Warning in be_debug.c HOT 2
- Error in tests HOT 3
- How to use with arduino IDE? HOT 5
- SIGTRAP when calling function returned from member function in class HOT 11
- Closed interval maybe a mistake? HOT 5
- Documentation enhancement for methods of an iter-instance? HOT 1
- Embedding berry on an MCU, where to start? HOT 6
- Print stack trace of exception caught with try/except HOT 2
- Strange GC behaviour HOT 14
- Constructor that take ptr as argument never called HOT 17
- Bad code and parser confusion with closure, upval and assignment with modification HOT 4
- f-strings for Berry HOT 7
- Documentation for the new format strings feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berry.