1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/lua_basic
benpicco 4ea27d4c13
Merge pull request #20300 from jparker324/stm32c0_and_nucleo_c031c6
cpu/stm32: add support for STM32C0 and NUCLEO-C031C6
2024-01-31 15:09:25 +00:00
..
app.config.test examples: tests: lua: add Kconfig configuration 2022-04-27 11:12:27 +02:00
main.c lua: Increased LUA_MEM_SIZE for 64 bit 2024-01-30 09:31:00 +01:00
main.lua pkg/lua: Provide better integration with RIOT 2018-07-02 15:13:10 +02:00
Makefile examples/lua*: adapt to the blob mechanism 2020-06-23 08:45:20 +02:00
Makefile.ci boards/nucleo-c031c6 initial add 2024-01-30 10:11:57 -05: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..