mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
633aa8cd41
This is mostly based on the cc1352-launchpad boards, is essentially the same buttons and leds pins, what changes is the CCXML files used to flash with `make flash` and the UART pins. Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com> |
||
---|---|---|
.. | ||
main.c | ||
main.js | ||
Makefile | ||
Makefile.ci | ||
README.md |
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..