LuPPC/src/lua/core/boot.lua

16 lines
382 B
Lua
Raw Normal View History

2016-01-05 04:20:40 +11:00
local boot = {}
function boot.boot()
2016-01-07 02:58:05 +11:00
local gpu = modules.component.api.proxy(modules.component.api.list("gpu", true)())
local w, h = gpu.getResolution()
print("r= " .. tostring(w) .. " " .. tostring(h))
gpu.fill(0, 0, w, h, " ")
2016-01-07 03:16:09 +11:00
gpu.set(10, 5, "HHHHHHHHHHHHH")
2016-01-05 04:20:40 +11:00
print("LuPI L2 INIT")
print("FIXME: boot stub")
2016-01-07 03:16:09 +11:00
native.sleep(1000000)
2016-01-05 04:20:40 +11:00
error("Unable to boot")
end
return boot