Comments (4)
hi, thanks for you feedback 👍
there's a blocking problem with AVR:
- incomplete sdt lib (prevents some c++ templates from evaluating arg types)
Print
object is missing theprintf()
method (e.g. should be inherited byStream
) which is critical for this library
I've pushed some changes on an experimental branch so you can test, but this will require to manually add printf to your existing arduino package.
Files to edit:
~/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Print.h
~/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Print.cpp
from yamlduino.
I don't have a Uno, but 2048 bytes of ram sounds a bit too tight to hold both ArduinoJson and YAML library.
ArduinoJson support does compile with some serializeYml()
tests though, but deserializeYml()
jumps to 300% program space and 250% dynamic memory use, and the former doesn't make sense without the latter.
even mega2560's 8Kb of RAM doesn't sound much given how unoptimized the library is.
- yaml parsing/emitting is less hungry in memory but requires a big function with a lot of switches (flash space)
- yaml loading uses less space but requires memory and will create more copies during deconstruction.
I'm trying to apply so basic optimization rules, and will probably get rid of some templates, but I'm very doubtful for deserializeYml()
support.
from yamlduino.
this printf() implementation is 148 bytes better https://github.com/arduino/ArduinoCore-API/pull/28/files
from yamlduino.
hi, thanks for you feedback 👍
there's a blocking problem with AVR:
- incomplete sdt lib (prevents some c++ templates from evaluating arg types)
printf()
method (e.g. should be inherited byStream
) which is critical for this libraryI've pushed some changes on an experimental branch so you can test, but this will require to manually add printf to your existing arduino package.
Files to edit:
~/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Print.h ~/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Print.cpp
Thank you for the fast reply.
I have already tested, it can be compiled.
However for Arduino UNO, the mcu's space is too small to use.
If the project wish to use YAML on Arduino UNO,
is there any way to parse the YAML data?
Thank you.
from yamlduino.
Related Issues (6)
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 yamlduino.