updated
This commit is contained in:
@@ -27,6 +27,7 @@ local function report(reactor, monitor)
|
|||||||
local value = getValue(reactor)
|
local value = getValue(reactor)
|
||||||
local color = color(reactor)
|
local color = color(reactor)
|
||||||
monitor.setBackgroundColor(color)
|
monitor.setBackgroundColor(color)
|
||||||
|
monitor.clearLine()
|
||||||
monitor.write("Coolant: " .. value .. "%")
|
monitor.write("Coolant: " .. value .. "%")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
1
main.lua
1
main.lua
@@ -24,7 +24,6 @@ local function runDisplay()
|
|||||||
|
|
||||||
for i, item in ipairs(drivers) do
|
for i, item in ipairs(drivers) do
|
||||||
monitor.setCursorPos(1, i)
|
monitor.setCursorPos(1, i)
|
||||||
monitor.clearLine()
|
|
||||||
item.driver.report(reactor, monitor)
|
item.driver.report(reactor, monitor)
|
||||||
monitor.setCursorPos(1, i + 1)
|
monitor.setCursorPos(1, i + 1)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ local function report(reactor, monitor)
|
|||||||
local value = getValue(reactor)
|
local value = getValue(reactor)
|
||||||
local color = color(reactor)
|
local color = color(reactor)
|
||||||
monitor.setBackgroundColor(color)
|
monitor.setBackgroundColor(color)
|
||||||
monitor.write("Coolant: " .. value .. "%")
|
monitor.clearLine()
|
||||||
|
monitor.write("Temperature: " .. value)
|
||||||
end
|
end
|
||||||
return { report = report, watch = watch }
|
return { report = report, watch = watch }
|
||||||
Reference in New Issue
Block a user