Skip to content

Create a Driver

tokitty edited this page Feb 1, 2026 · 1 revision

WARNING! Please, know how to write good, reliable lua code!

If you don't, you may potentially brick the OS!
Here's a decent example to get you going:

--Driver.lua
local Driver = {}
Driver.__index = Driver

function Driver:Load()
   --Your init code here
end
function Driver:Unload()
   --Your unloading code here
end
return Driver

Note that your driver NEEDS to at least follow this template. Without this, your driver will fail to load. Any program can utilize your driver via the DriverLoader.

Clone this wiki locally