This commit is contained in:
2025-06-15 17:16:56 -04:00
parent b4b52db2e4
commit abcf11bfb9
3 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
local function getValue(env)
local value = env.getRadiation()
print(value.radiation, value.unit)
local stringValue = tostring(value.radiation) .. tostring(value.unit)
local stringValue = tostring(value.radiation) .. " " .. tostring(value.unit)
return stringValue
end

View File

@@ -35,6 +35,9 @@ local function runDisplay()
monitor.setTextScale(1)
while true do
monitor.setCursorPos(1, 0)
setNewLine()
monitor.setBackgroundColor(colors.blue)
monitor.write("Reactor Readings:")
local drivers = {
{ Label = "Status", driver = statusDriver},
{ Label = "Temperature", driver = tempDriver },

View File

@@ -43,7 +43,6 @@ local function report()
local value = getValue()
local color = colors.black
monitor.setBackgroundColor(color)
setNewLine()
monitor.write("Temperature: " .. value .. "F")
end