Skip to content

marcel-cd/jerryscript.esp

Repository files navigation

Using JerryScript on ESP32

JerryScript is the lightweight JavaScript engine intended to run on a very constrained devices such as microcontrollers:

  • Only few kilobytes of RAM available to the engine (<64 KB RAM)
  • Constrained ROM space for the code of the engine (<200 KB ROM)

The engine supports on-device compilation, execution and provides access to peripherals from JavaScript.

Using JerryScript

JerryScript needs a heap, if you have external PSRAM, add the following configuration to your sdkconfig.defaults

CONFIG_JERRYSCRIPT_MALLOC_STRATEGY_SPIRAM=y
CONFIG_JERRYSCRIPT_HEAP_SIZE=128

Have a look at the example code: hello_world

Contributing

We welcome contributions in the form of code, bug reports, and feedback.

Contact

Join the conversation on:

About

Using JavaScript (JerryScript) on ESP32

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages