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