1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00
RIOT/examples/lua_basic
Marian Buschsieweke ba90ba2e2f
examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
- Decluttered Makefile by moving BOARD_INSUFFICIENT_MEMORY lists from Makefile
  to Makefile.ci
- Optimized the list for use of tools:
    - One entry per line reduces the number of merge conflicts
    - One entry per line allows alphabetical sorting e.g. via Vim's sort command
- Sorted all lists alphabetically
2019-10-15 09:55:07 +02:00
..
main.c pkg/lua: Provide better integration with RIOT 2018-07-02 15:13:10 +02:00
main.lua pkg/lua: Provide better integration with RIOT 2018-07-02 15:13:10 +02:00
Makefile examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-15 09:55:07 +02:00
Makefile.ci examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-15 09:55:07 +02:00
README.md pkg/lua: Provide better integration with RIOT 2018-07-02 15:13:10 +02:00

About

This example shows how to write IoT applications using Lua.

Caveats

Currently, the only actual function available is "print"

How to use

Put your lua code into "main.lua" (check the example). The file will be included in your application as an ASCII byte array. This is done in the last 20 or so lines of the example's Makefile.

The script will then be run immediately after RIOT has started up.

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..