updated
This commit is contained in:
2
main.lua
2
main.lua
@@ -13,7 +13,6 @@ end
|
||||
|
||||
local function runDisplay()
|
||||
while true do
|
||||
monitor.clear()
|
||||
monitor.setCursorPos(1,1)
|
||||
local data = {
|
||||
{ Label = "Temperature", value = tempDriver.report(reactor)},
|
||||
@@ -22,6 +21,7 @@ local function runDisplay()
|
||||
}
|
||||
|
||||
for i, item in ipairs(data) do
|
||||
monitor.clearLine();
|
||||
monitor.write(item.Label .. ": " .. item.value)
|
||||
monitor.setCursorPos(1, i + 1)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user