Initialize modular ATM10 CC control system

This commit is contained in:
2026-07-13 02:46:11 +02:00
commit 5362d31036
28 changed files with 331 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
return { active = function() return {} end }
+2
View File
@@ -0,0 +1,2 @@
return { background = colors.black, text = colors.white, ok = colors.lime, warning = colors.orange, fault = colors.red, accent = colors.cyan }
+11
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
local M = {}
function M.title(target, text)
target.setCursorPos(1, 1)
target.clearLine()
target.write(text)
end
return M