Example Usage

The following section details examples of common usage of embLua.

Many of the following examples utilise the REPL – however those examples omit the REPL prompt ($) in order to allow the example script to be copy-paste by the user. If the Command Mode is part of an example, it will always explicitly include the ‘/‘ prompt.

Toggle GPIO
UART Transmit
SPI Receive
LED Fade
Fibonacci Sequence Calculation
Float Divide and String Concatenation
Interrupt
Inter-Core Communication
Inter-Core Synchronization
Exit Script/Program
Non-volatile I/O Config
Program Upload