updated
This commit is contained in:
8
main.lua
8
main.lua
@@ -14,15 +14,19 @@ end
|
||||
local function runDisplay()
|
||||
monitor.clear()
|
||||
monitor.setTextScale(1)
|
||||
monitor.setCursorPos(1, 1)
|
||||
while true do
|
||||
monitor.setCursorPos(1, 1)
|
||||
|
||||
local drivers = {
|
||||
{ Label = "Temperature", driver = tempDriver },
|
||||
{ Label = "Coolant", driver = coolantDriver },
|
||||
}
|
||||
|
||||
for _, item in ipairs(drivers) do
|
||||
for i, item in ipairs(drivers) do
|
||||
monitor.setCursorPos(1, i)
|
||||
monitor.clearLine()
|
||||
item.driver.report(reactor, monitor)
|
||||
monitor.setCursorPos(1, i + 1)
|
||||
end
|
||||
|
||||
sleep(0.25) -- Update every quarter second
|
||||
|
||||
Reference in New Issue
Block a user