Skip to main content

Lua Startup Script

Advanced users can create custom lua scripts by creating a startup.lua file. Anything in this file will be run at startup. Caution should be taken with this as it has the potential to break stuff.

Create a text file in %localappdata%\Link88\Link88 Controller and rename it to startup.lua. Any lua code that you put in this file will be loaded (and run) when LEDNet starts. Anything defined as "function" will be available as a command in the console.

Example:

function myFunction(waitTime)
if arg and arg > 0 then
print("Stopping screen")
stop()
thread.wait(waitTime)
print("Starting screen")
start()
else
print("Error: myFunction() requires argument - myFunction(wait time)")
return
end
end