JerryScript is the lightweight JavaScript engine intended to run on a very constrained devices such as microcontrollers:
The engine supports on-device compilation, execution and provides access to peripherals from JavaScript.
JerryScript needs a heap, if you have external PSRAM, add the following configuration to your sdkconfig.defaults
Sh
CONFIG_JERRYSCRIPT_MALLOC_STRATEGY_SPIRAM=y
CONFIG_JERRYSCRIPT_HEAP_SIZE=128
Have a look at the example code: hello_world
We welcome contributions in the form of code, bug reports, and feedback.
Join the conversation on:
idf.py add-dependency "marcel-cd/jerryscript^1.0.6"