summaryrefslogtreecommitdiff
path: root/mesecons_luacontroller/help/events.txt
blob: cd2bcefd883cb77271c34afb338a34c5e5faf854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Events
======

Unlike some other types of programs, Luacontroller programs cannot run continously.
Instead, they run whenever something (an event) happens, and an "event" table is made available with details.

Event types include:
* 'program' - Program was loaded
* 'on' and 'off' - A Mesecons pin changed on/off state
* 'digiline' (if Digilines is installed) - A Digilines message was received
* 'interrupt' - An interrupt timer reached zero
* 'terminal' - Text was typed into the terminal