1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00
RIOT/examples/javascript
Marian Buschsieweke d2a3ff3d83
boards/{bluepill*,blackpill*}: rename and improve doc
- renamed:
    - `bluepill` --> `bluepill-stm32f103c8`
    - `bluepill-128kib` --> `bluepill-stm32f103cb`
    - `blackpill` --> `blackpill-stm32f103c8`
    - `blackpill-128kib` --> `blackpill-stm32f103cb`
- doc:
    - added link to corresponding hardware page on the STM32-base
      project
    - added picture
2023-01-02 16:23:10 +01:00
..
app.config.test examples/javascript: add Kconfig configuration 2022-04-27 11:08:27 +02:00
main.c examples/javascript: make use of blob.inc.mk 2019-11-18 21:56:32 +01:00
main.js examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00
Makefile examples/javascript: make use of blob.inc.mk 2019-11-18 21:56:32 +01:00
Makefile.ci boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
README.md examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00

About

This example shows how to write IoT applications using javascript.

Acknowledgement

This example is based on Jerryscript which does all the heavy lifting, providing full ECMAScript 5.1 profile on your IoT device (kudos guys!).

Caveats

  • currently, the only actual function available is "print"

How to use

Just put your javascript code in "main.js" (check the example). The file will automatically be included when compiling the application, which will execute the file right after booting.

How to run

Type make flash term.

Note: you may have to press RESET on the board (after the flash) if the board reboots faster than the terminal program can start..