Initialize modular ATM10 CC control system
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
return { active = function() return {} end }
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
return { background = colors.black, text = colors.white, ok = colors.lime, warning = colors.orange, fault = colors.red, accent = colors.cyan }
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
local widgets = require("ui.widgets")
|
||||
local M = {}
|
||||
function M.render(target, title, lines)
|
||||
target.setBackgroundColor(colors.black)
|
||||
target.setTextColor(colors.white)
|
||||
target.clear()
|
||||
widgets.title(target, title)
|
||||
for index, line in ipairs(lines or {}) do target.setCursorPos(1, index + 2); target.write(line) end
|
||||
end
|
||||
return M
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
local M = {}
|
||||
function M.title(target, text)
|
||||
target.setCursorPos(1, 1)
|
||||
target.clearLine()
|
||||
target.write(text)
|
||||
end
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user